1 | project(Lidar)
|
---|
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 | -DLIDAR_EXPORTS
|
---|
17 | )
|
---|
18 |
|
---|
19 | # ========================================
|
---|
20 | # Include directories
|
---|
21 | # ========================================
|
---|
22 | include_directories(
|
---|
23 | ${PACPUS_INCLUDE_DIR}/Pacpus
|
---|
24 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar
|
---|
25 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/sensor
|
---|
26 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/dbt
|
---|
27 | ${PACPUS_INCLUDE_DIR}
|
---|
28 | ${PROJECT_BINARY_DIR}
|
---|
29 | ${QT_INCLUDE_DIR}
|
---|
30 | )
|
---|
31 |
|
---|
32 | # ========================================
|
---|
33 | # Link directories
|
---|
34 | # ========================================
|
---|
35 | link_directories(
|
---|
36 |
|
---|
37 | )
|
---|
38 |
|
---|
39 | # ========================================
|
---|
40 | # List of sources
|
---|
41 | # ========================================
|
---|
42 | set(
|
---|
43 | PROJECT_SRCS
|
---|
44 | sensor/AlascaComponent.cpp
|
---|
45 | sensor/AlascaSocket.cpp
|
---|
46 | dbt/DbtPlyAlascaManager.cpp
|
---|
47 |
|
---|
48 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/sensor/AlascaComponent.h
|
---|
49 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/sensor/AlascaSocket.h
|
---|
50 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/dbt/DbtPlyAlascaManager.h
|
---|
51 | ${PLUGIN_CPP}
|
---|
52 | )
|
---|
53 |
|
---|
54 | # ========================================
|
---|
55 | # Files to MOC
|
---|
56 | # ========================================
|
---|
57 | set(
|
---|
58 | FILES_TO_MOC
|
---|
59 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/sensor/AlascaComponent.h
|
---|
60 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/sensor/AlascaSocket.h
|
---|
61 | ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/dbt/DbtPlyAlascaManager.h
|
---|
62 | ${PLUGIN_H}
|
---|
63 | )
|
---|
64 |
|
---|
65 | set(
|
---|
66 | UI_FILESs
|
---|
67 |
|
---|
68 | )
|
---|
69 |
|
---|
70 | # ========================================
|
---|
71 | # Call MOC
|
---|
72 | # ========================================
|
---|
73 | qt5_wrap_cpp(
|
---|
74 | PROJECT_MOC_SRCS
|
---|
75 | ${FILES_TO_MOC}
|
---|
76 | )
|
---|
77 |
|
---|
78 | qt5_wrap_ui(
|
---|
79 | PROJECT_UI_SRCS
|
---|
80 | ${UI_FILES}
|
---|
81 | )
|
---|
82 |
|
---|
83 | # ========================================
|
---|
84 | # Build a library
|
---|
85 | # ========================================
|
---|
86 | pacpus_add_library(
|
---|
87 | ${PROJECT_NAME} SHARED
|
---|
88 | ${PROJECT_SRCS}
|
---|
89 | ${PROJECT_MOC_SRCS}
|
---|
90 | ${PROJECT_UI_SRCS}
|
---|
91 | )
|
---|
92 |
|
---|
93 | # ========================================
|
---|
94 | # Libraries
|
---|
95 | # ========================================
|
---|
96 | # All the platform
|
---|
97 | target_link_libraries(
|
---|
98 | ${PROJECT_NAME}
|
---|
99 | ${PACPUS_LIBRARIES}
|
---|
100 | ${QT_LIBRARIES}
|
---|
101 | ${PACPUS_DEPENDENCIES_LIB}
|
---|
102 | )
|
---|
103 |
|
---|
104 | # ========================================
|
---|
105 | # Install
|
---|
106 | # ========================================
|
---|
107 | pacpus_install(${PROJECT_NAME})
|
---|
108 |
|
---|
109 | # Installation of the headers
|
---|
110 | #install(DIRECTORY ${PACPUS_INCLUDE_DIR} DESTINATION "${PACPUS_ROOT}")
|
---|
111 |
|
---|
112 | # ========================================
|
---|
113 | # Folder
|
---|
114 | # ========================================
|
---|
115 | pacpus_folder(${PROJECT_NAME} "SensorsComponent")
|
---|