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