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

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

Memory leak bug resolved (dynamic memory allocation is no longer used).

File size: 2.2 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 StdDbtPlayerComponentsConfig.h
24 # DbtPlySickLMSManager.h
25 # DbtPlySickLDMRSManager.h
26)
27
28
29# ========================================
30# List of sources
31# ========================================
32set(
33 PROJECT_SRCS
34 # DbtPlySickLMSManager.cpp
35 # DbtPlySickLDMRSManager.cpp
36 ${HDRS}
37 ${PLUGIN_CPP}
38)
39
40# ========================================
41# Files to MOC
42# ========================================
43set(
44 FILES_TO_MOC
45 DbtPlySickLMSManager.h
46 DbtPlySickLDMRSManager.h
47 ${PLUGIN_H}
48 )
49
50
51set(
52 UI_FILES
53
54)
55
56# ========================================
57# Call MOC
58# ========================================
59qt4_wrap_cpp(
60 PROJECT_MOC_SRCS
61 ${FILES_TO_MOC}
62)
63
64qt4_wrap_ui(
65 PROJECT_UI_SRCS
66 ${UI_FILES}
67)
68
69# ========================================
70# Build a library
71# ========================================
72pacpus_add_library(
73 ${PROJECT_NAME} SHARED
74 ${PROJECT_SRCS}
75 ${PROJECT_MOC_SRCS}
76 ${PROJECT_UI_SRCS}
77)
78
79set(LIBS
80 optimized FileLib debug FileLib_d
81 optimized PacpusLib debug PacpusLib_d
82 optimized PacpusTools debug PacpusTools_d
83)
84if (WIN32)
85 list(APPEND LIBS
86 optimized ROAD_TIME debug ROAD_TIME_d
87 )
88endif()
89
90# ========================================
91# Libraries
92# ========================================
93# All the platform
94target_link_libraries(
95 ${PROJECT_NAME}
96 ${PACPUS_LIBRARIES}
97 ${QT_LIBRARIES}
98 ${PACPUS_DEPENDENCIES_LIB}
99 ${LIBS}
100)
101
102pacpus_folder(${PROJECT_NAME} "components")
103
104# ========================================
105# Install
106# ========================================
107pacpus_install(${PROJECT_NAME})
Note: See TracBrowser for help on using the repository browser.