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

Last change on this file since 77 was 74, checked in by DHERBOMEZ Gérald, 10 years ago
  • Modification of Sick LMS sensor to get the RSSI signal (reflectivity of the laser)
  • Minor changes in data replay component of Sick LDMRS
  • CanGateway: Choose by default of Vector CAN XL card
File size: 2.3 KB
RevLine 
[16]1project(StdDbtPlayerComponents)
2
3################################################################################
4add_definitions( -DSTDDBTPLAYERCOMPONENTS_EXPORTS )
[74]5add_definitions( -DDBTPLYSICK_EXPORTS)
6add_definitions( -DDBTPLYSICK_EXPORTS)
[16]7# ========================================
8# Include directories
9# ========================================
10include_directories(
11 ${PROJECT_BINARY_DIR}
12 ${QT_INCLUDE_DIR}
13)
14
15# ========================================
16# Link directories
17# ========================================
18link_directories( ${PACPUS_LIB_DIR}
19)
20
21pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME} )
22
23set(HDRS
24 StdDbtPlayerComponentsConfig.h
[74]25 DbtPlySickLMSManager.h
26 DbtPlySickLDMRSManager.h
[16]27)
28
29
30# ========================================
31# List of sources
32# ========================================
33set(
34 PROJECT_SRCS
[74]35 DbtPlySickLMSManager.cpp
36 DbtPlySickLDMRSManager.cpp
[16]37 ${HDRS}
38 ${PLUGIN_CPP}
39)
40
41# ========================================
42# Files to MOC
43# ========================================
44set(
45 FILES_TO_MOC
[42]46 DbtPlySickLMSManager.h
[43]47 DbtPlySickLDMRSManager.h
[16]48 ${PLUGIN_H}
49 )
50
51
52set(
53 UI_FILES
54
55)
56
57# ========================================
58# Call MOC
59# ========================================
[31]60qt4_wrap_cpp(
[16]61 PROJECT_MOC_SRCS
62 ${FILES_TO_MOC}
63)
64
[31]65qt4_wrap_ui(
[16]66 PROJECT_UI_SRCS
67 ${UI_FILES}
68)
69
70# ========================================
71# Build a library
72# ========================================
73pacpus_add_library(
74 ${PROJECT_NAME} SHARED
75 ${PROJECT_SRCS}
76 ${PROJECT_MOC_SRCS}
77 ${PROJECT_UI_SRCS}
78)
79
80set(LIBS
81 optimized FileLib debug FileLib_d
82 optimized PacpusLib debug PacpusLib_d
83 optimized PacpusTools debug PacpusTools_d
84)
85if (WIN32)
86 list(APPEND LIBS
87 optimized ROAD_TIME debug ROAD_TIME_d
88 )
89endif()
90
91# ========================================
92# Libraries
93# ========================================
94# All the platform
95target_link_libraries(
96 ${PROJECT_NAME}
97 ${PACPUS_LIBRARIES}
98 ${QT_LIBRARIES}
99 ${PACPUS_DEPENDENCIES_LIB}
100 ${LIBS}
101)
102
103pacpus_folder(${PROJECT_NAME} "components")
104
105# ========================================
106# Install
107# ========================================
[27]108pacpus_install(${PROJECT_NAME})
Note: See TracBrowser for help on using the repository browser.