source: pacpussensors/trunk/StdDbtPlayerComponents/CMakeLists.txt@ 17

Last change on this file since 17 was 16, checked in by DHERBOMEZ Gérald, 11 years ago

add standards replay components for some sensors that has to be used with DBITEPlayer application: StdDbtPlayerComponents

File size: 2.6 KB
Line 
1project(StdDbtPlayerComponents)
2
3################################################################################
4add_definitions( -DSTDDBTPLAYERCOMPONENTS_EXPORTS )
5
6# ========================================
7# Configure qt4
8# ========================================
9if(QT4_FOUND)
10 set(QT_USE_QTXML true)
11 set(QT_USE_QTNETWORK true)
12 include(${QT_USE_FILE})
13else()
14 message(ERROR "Qt4 needed")
15endif()
16
17# ========================================
18# Compiler definitions
19# ========================================
20add_definitions(
21 ${QT_DEFINITIONS}
22)
23
24# ========================================
25# Include directories
26# ========================================
27include_directories(
28 ${PROJECT_BINARY_DIR}
29 ${QT_INCLUDE_DIR}
30)
31
32# ========================================
33# Link directories
34# ========================================
35link_directories( ${PACPUS_LIB_DIR}
36)
37
38pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME} )
39
40set(HDRS
41 DbtPlyImageManager.h
42 DbtPlyStereoManager.h
43 ImageViewer.h
44 StdDbtPlayerComponentsConfig.h
45)
46
47
48# ========================================
49# List of sources
50# ========================================
51set(
52 PROJECT_SRCS
53 DbtPlyImageManager.cpp
54 DbtPlyStereoManager.cpp
55 ImageViewer.cpp
56 ${HDRS}
57 ${PLUGIN_CPP}
58)
59
60# ========================================
61# Files to MOC
62# ========================================
63set(
64 FILES_TO_MOC
65 DbtPlyImageManager.h
66 DbtPlyStereoManager.h
67 ImageViewer.h
68 ${PLUGIN_H}
69 )
70
71
72set(
73 UI_FILES
74
75)
76
77# ========================================
78# Call MOC
79# ========================================
80qt4_wrap_cpp(
81 PROJECT_MOC_SRCS
82 ${FILES_TO_MOC}
83)
84
85qt4_wrap_ui(
86 PROJECT_UI_SRCS
87 ${UI_FILES}
88)
89
90# ========================================
91# Build a library
92# ========================================
93pacpus_add_library(
94 ${PROJECT_NAME} SHARED
95 ${PROJECT_SRCS}
96 ${PROJECT_MOC_SRCS}
97 ${PROJECT_UI_SRCS}
98)
99
100set(LIBS
101 optimized FileLib debug FileLib_d
102 optimized PacpusLib debug PacpusLib_d
103 optimized PacpusTools debug PacpusTools_d
104)
105if (WIN32)
106 list(APPEND LIBS
107 optimized ROAD_TIME debug ROAD_TIME_d
108 )
109endif()
110
111# ========================================
112# Libraries
113# ========================================
114# All the platform
115target_link_libraries(
116 ${PROJECT_NAME}
117 ${PACPUS_LIBRARIES}
118 ${QT_LIBRARIES}
119 ${PACPUS_DEPENDENCIES_LIB}
120 ${LIBS}
121)
122
123pacpus_folder(${PROJECT_NAME} "components")
124
125# ========================================
126# Install
127# ========================================
128pacpus_install(${PROJECT_NAME})
129
Note: See TracBrowser for help on using the repository browser.