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

Last change on this file since 31 was 31, checked in by phudelai, 10 years ago

ok

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