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

Last change on this file since 43 was 43, checked in by cfougera, 10 years ago

XML for sensors and players added. LMSxxx player ok. LDMRS still under development.

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