1 | project(StdDbtPlayerComponents)
|
---|
2 |
|
---|
3 | ################################################################################
|
---|
4 | add_definitions( -DSTDDBTPLAYERCOMPONENTS_EXPORTS )
|
---|
5 |
|
---|
6 | # ========================================
|
---|
7 | # Include directories
|
---|
8 | # ========================================
|
---|
9 | include_directories(
|
---|
10 | ${PROJECT_BINARY_DIR}
|
---|
11 | ${QT_INCLUDE_DIR}
|
---|
12 | )
|
---|
13 |
|
---|
14 | # ========================================
|
---|
15 | # Link directories
|
---|
16 | # ========================================
|
---|
17 | link_directories( ${PACPUS_LIB_DIR}
|
---|
18 | )
|
---|
19 |
|
---|
20 | pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME} )
|
---|
21 |
|
---|
22 | set(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 | # ========================================
|
---|
35 | set(
|
---|
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 | # ========================================
|
---|
49 | set(
|
---|
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 |
|
---|
60 | set(
|
---|
61 | UI_FILES
|
---|
62 |
|
---|
63 | )
|
---|
64 |
|
---|
65 | # ========================================
|
---|
66 | # Call MOC
|
---|
67 | # ========================================
|
---|
68 | qt4_wrap_cpp(
|
---|
69 | PROJECT_MOC_SRCS
|
---|
70 | ${FILES_TO_MOC}
|
---|
71 | )
|
---|
72 |
|
---|
73 | qt4_wrap_ui(
|
---|
74 | PROJECT_UI_SRCS
|
---|
75 | ${UI_FILES}
|
---|
76 | )
|
---|
77 |
|
---|
78 | # ========================================
|
---|
79 | # Build a library
|
---|
80 | # ========================================
|
---|
81 | pacpus_add_library(
|
---|
82 | ${PROJECT_NAME} SHARED
|
---|
83 | ${PROJECT_SRCS}
|
---|
84 | ${PROJECT_MOC_SRCS}
|
---|
85 | ${PROJECT_UI_SRCS}
|
---|
86 | )
|
---|
87 |
|
---|
88 | set(LIBS
|
---|
89 | optimized FileLib debug FileLib_d
|
---|
90 | optimized PacpusLib debug PacpusLib_d
|
---|
91 | optimized PacpusTools debug PacpusTools_d
|
---|
92 | )
|
---|
93 | if (WIN32)
|
---|
94 | list(APPEND LIBS
|
---|
95 | optimized ROAD_TIME debug ROAD_TIME_d
|
---|
96 | )
|
---|
97 | endif()
|
---|
98 |
|
---|
99 | # ========================================
|
---|
100 | # Libraries
|
---|
101 | # ========================================
|
---|
102 | # All the platform
|
---|
103 | target_link_libraries(
|
---|
104 | ${PROJECT_NAME}
|
---|
105 | ${PACPUS_LIBRARIES}
|
---|
106 | ${QT_LIBRARIES}
|
---|
107 | ${PACPUS_DEPENDENCIES_LIB}
|
---|
108 | ${LIBS}
|
---|
109 | )
|
---|
110 |
|
---|
111 | pacpus_folder(${PROJECT_NAME} "components")
|
---|
112 |
|
---|
113 | # ========================================
|
---|
114 | # Install
|
---|
115 | # ========================================
|
---|
116 | pacpus_install(${PROJECT_NAME}) |
---|