source: pacpusframework/branches/2.0-beta1/src/TestComponents/Lidar/CMakeLists.txt@ 94

Last change on this file since 94 was 94, checked in by DHERBOMEZ Gérald, 11 years ago

fix windows

  • Property svn:executable set to *
File size: 2.9 KB
Line 
1project(Lidar)
2
3# ========================================
4# Basic Definitions
5# ========================================
6set(${PROJECT_NAME}_VERSION_MAJOR 0)
7set(${PROJECT_NAME}_VERSION_MINOR 1)
8
9pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME})
10
11# ========================================
12# Compiler definitions
13# ========================================
14add_definitions(
15 ${QT_DEFINITIONS}
16 -DLIDAR_EXPORTS
17 -DALASCAXT_EXPORTS
18 -DDBTPLYALASCA_EXPORTS
19)
20
21# ========================================
22# Include directories
23# ========================================
24include_directories(
25 ${PACPUS_INCLUDE_DIR}/Pacpus
26 ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar
27 ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/sensor
28 ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/dbt
29 ${PACPUS_INCLUDE_DIR}
30 ${PROJECT_BINARY_DIR}
31 ${QT_INCLUDE_DIR}
32)
33
34# ========================================
35# Link directories
36# ========================================
37link_directories(
38
39)
40
41# ========================================
42# List of sources
43# ========================================
44set(
45 PROJECT_SRCS
46 sensor/AlascaComponent.cpp
47 sensor/AlascaSocket.cpp
48 dbt/DbtPlyAlascaManager.cpp
49
50 ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/sensor/AlascaComponent.h
51 ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/sensor/AlascaSocket.h
52 ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/dbt/DbtPlyAlascaManager.h
53 ${PLUGIN_CPP}
54)
55
56# ========================================
57# Files to MOC
58# ========================================
59set(
60 FILES_TO_MOC
61 ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/sensor/AlascaComponent.h
62 ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/sensor/AlascaSocket.h
63 ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/Lidar/dbt/DbtPlyAlascaManager.h
64 ${PLUGIN_H}
65)
66
67set(
68 UI_FILESs
69
70)
71
72# ========================================
73# Call MOC
74# ========================================
75 qt5_wrap_cpp(
76 PROJECT_MOC_SRCS
77 ${FILES_TO_MOC}
78 )
79
80qt5_wrap_ui(
81 PROJECT_UI_SRCS
82 ${UI_FILES}
83)
84
85# ========================================
86# Build a library
87# ========================================
88pacpus_add_library(
89 ${PROJECT_NAME} SHARED
90 ${PROJECT_SRCS}
91 ${PROJECT_MOC_SRCS}
92 ${PROJECT_UI_SRCS}
93)
94
95# ========================================
96# Libraries
97# ========================================
98# All the platform
99target_link_libraries(
100 ${PROJECT_NAME}
101 ${PACPUS_LIBRARIES}
102 ${QT_LIBRARIES}
103 ${PACPUS_DEPENDENCIES_LIB}
104 road_time
105)
106
107# ========================================
108# Install
109# ========================================
110pacpus_install(${PROJECT_NAME})
111
112# Installation of the headers
113#install(DIRECTORY ${PACPUS_INCLUDE_DIR} DESTINATION "${PACPUS_ROOT}")
114
115# ========================================
116# Folder
117# ========================================
118pacpus_folder(${PROJECT_NAME} "SensorsComponent")
Note: See TracBrowser for help on using the repository browser.