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

Last change on this file since 30 was 27, checked in by Marek Kurdej, 11 years ago

Minor: CMakeLists fixes (Qt4/Qt5 compatibility).

File size: 2.2 KB
RevLine 
[16]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# ========================================
[27]62qt_wrap_cpp(
[16]63 PROJECT_MOC_SRCS
64 ${FILES_TO_MOC}
65)
66
[27]67qt_wrap_ui(
[16]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# ========================================
[27]110pacpus_install(${PROJECT_NAME})
Note: See TracBrowser for help on using the repository browser.