1 | project(Video)
|
---|
2 |
|
---|
3 | # ========================================
|
---|
4 | # Basic Definitions
|
---|
5 | # ========================================
|
---|
6 | set(${PROJECT_NAME}_VERSION_MAJOR 0)
|
---|
7 | set(${PROJECT_NAME}_VERSION_MINOR 1)
|
---|
8 |
|
---|
9 | pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME})
|
---|
10 |
|
---|
11 | # ========================================
|
---|
12 | # Compiler definitions
|
---|
13 | # ========================================
|
---|
14 | add_definitions(
|
---|
15 | ${QT_DEFINITIONS}
|
---|
16 | -DVIDEO_EXPORTS
|
---|
17 | -DDBTPLYVISION_EXPORTS
|
---|
18 | )
|
---|
19 |
|
---|
20 | # ========================================
|
---|
21 | # Include directories
|
---|
22 | # ========================================
|
---|
23 | include_directories(
|
---|
24 | #${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video
|
---|
25 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/sensor
|
---|
26 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/dbt
|
---|
27 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/commun
|
---|
28 | ${PACPUS_INCLUDE_DIR}/Pacpus
|
---|
29 | ${PACPUS_INCLUDE_DIR}
|
---|
30 | ${PROJECT_BINARY_DIR}
|
---|
31 | ${QT_INCLUDE_DIR}
|
---|
32 | )
|
---|
33 |
|
---|
34 | # ========================================
|
---|
35 | # Link directories
|
---|
36 | # ========================================
|
---|
37 | link_directories(
|
---|
38 |
|
---|
39 | )
|
---|
40 |
|
---|
41 | # ========================================
|
---|
42 | # List of sources
|
---|
43 | # ========================================
|
---|
44 | set(
|
---|
45 | PROJECT_SRCS
|
---|
46 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/dbt/DbtPlyVisionConfig.h
|
---|
47 | dbt/DbtPlyStereoManager.cpp
|
---|
48 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/dbt/DbtPlyStereoManager.h
|
---|
49 | dbt/DbtPlyImageManager.cpp
|
---|
50 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/dbt/DbtPlyImageManager.h
|
---|
51 |
|
---|
52 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/commun/ImageViewer.h
|
---|
53 | commun/ImageViewer.cpp
|
---|
54 | ${PLUGIN_CPP}
|
---|
55 | )
|
---|
56 |
|
---|
57 | if(WIN32)
|
---|
58 | set(PROJECT_SRCS
|
---|
59 | ${PROJECT_SRCS}
|
---|
60 | sensor/Camera1394.cpp
|
---|
61 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/sensor/Camera1394.h
|
---|
62 | )
|
---|
63 | endif(WIN32)
|
---|
64 |
|
---|
65 | if(UNIX)
|
---|
66 | set(PROJECT_SRCS
|
---|
67 | ${PROJECT_SRCS}
|
---|
68 | sensor/Camera1394Unix.cpp
|
---|
69 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/sensor/Camera1394Unix.h
|
---|
70 | )
|
---|
71 | endif(UNIX)
|
---|
72 |
|
---|
73 | # ========================================
|
---|
74 | # Files to MOC
|
---|
75 | # ========================================
|
---|
76 | set(
|
---|
77 | FILES_TO_MOC
|
---|
78 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/dbt/DbtPlyImageManager.h
|
---|
79 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/dbt/DbtPlyStereoManager.h
|
---|
80 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/commun/ImageViewer.h
|
---|
81 | ${PLUGIN_H}
|
---|
82 | )
|
---|
83 |
|
---|
84 | if(WIN32)
|
---|
85 | set(FILES_TO_MOC
|
---|
86 | ${FILES_TO_MOC}
|
---|
87 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/sensor/Camera1394.h
|
---|
88 | )
|
---|
89 | endif(WIN32)
|
---|
90 |
|
---|
91 | if(UNIX)
|
---|
92 | set(FILES_TO_MOC
|
---|
93 | ${FILES_TO_MOC}
|
---|
94 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Video/sensor/Camera1394Unix.h
|
---|
95 | )
|
---|
96 | endif(UNIX)
|
---|
97 |
|
---|
98 | set(
|
---|
99 | UI_FILES
|
---|
100 | )
|
---|
101 |
|
---|
102 | # ========================================
|
---|
103 | # Call MOC
|
---|
104 | # ========================================
|
---|
105 | qt5_wrap_cpp(
|
---|
106 | PROJECT_MOC_SRCS
|
---|
107 | ${FILES_TO_MOC}
|
---|
108 | )
|
---|
109 |
|
---|
110 | qt5_wrap_ui(
|
---|
111 | PROJECT_UI_SRCS
|
---|
112 | ${UI_FILES}
|
---|
113 | )
|
---|
114 |
|
---|
115 | # ========================================
|
---|
116 | # Build a library
|
---|
117 | # ========================================
|
---|
118 | pacpus_add_library(
|
---|
119 | ${PROJECT_NAME} SHARED
|
---|
120 | ${PROJECT_SRCS}
|
---|
121 | ${PROJECT_MOC_SRCS}
|
---|
122 | ${PROJECT_UI_SRCS}
|
---|
123 | )
|
---|
124 |
|
---|
125 | # ========================================
|
---|
126 | # Libraries
|
---|
127 | # ========================================
|
---|
128 | # All the platform
|
---|
129 | target_link_libraries(
|
---|
130 | ${PROJECT_NAME}
|
---|
131 | ${PACPUS_LIBRARIES}
|
---|
132 | ${QT_LIBRARIES}
|
---|
133 | )
|
---|
134 |
|
---|
135 | if(WIN32)
|
---|
136 | target_link_libraries(
|
---|
137 | ${PROJECT_NAME}
|
---|
138 | 1394camera
|
---|
139 | )
|
---|
140 | endif(WIN32)
|
---|
141 | if(UNIX)
|
---|
142 | target_link_libraries(
|
---|
143 | ${PROJECT_NAME}
|
---|
144 | dc1394
|
---|
145 | )
|
---|
146 | endif(UNIX)
|
---|
147 |
|
---|
148 | # ========================================
|
---|
149 | # Install
|
---|
150 | # ========================================
|
---|
151 | pacpus_install(${PROJECT_NAME})
|
---|
152 |
|
---|
153 | # Installation of the headers
|
---|
154 | #install(DIRECTORY ${PACPUS_INCLUDE_DIR} DESTINATION "${PACPUS_ROOT}")
|
---|
155 |
|
---|
156 | # ========================================
|
---|
157 | # Folder
|
---|
158 | # ========================================
|
---|
159 | pacpus_folder(${PROJECT_NAME} "Camera")
|
---|