forked from nobleo/rviz_satellite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
80 lines (63 loc) · 1.56 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
cmake_minimum_required(VERSION 3.0.2)
project(rviz_satellite)
find_package(catkin REQUIRED
COMPONENTS
roscpp
rviz
sensor_msgs
)
catkin_package(
CATKIN_DEPENDS
roscpp
rviz
sensor_msgs
)
find_package(Qt5 ${rviz_QT_VERSION} EXACT REQUIRED Core Gui Network REQUIRED)
set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::Network)
## BUILD ##
set(${PROJECT_NAME}_SOURCES
src/aerialmap_display.cpp
src/ogre_tile.cpp
src/tile_id.cpp
)
set(${PROJECT_NAME}_HEADERS
src/aerialmap_display.h
src/detail/tile_downloader.h
)
# invoke MOC and UI/ include Qt headers/ link Qt libraries - alternatively, see CMAKE_AUTOMOC
qt5_wrap_cpp(${PROJECT_NAME}_MOC_FILES ${${PROJECT_NAME}_HEADERS})
set(PROJECT_SOURCE_FILES
${${PROJECT_NAME}_SOURCES}
${${PROJECT_NAME}_MOC_FILES}
)
include_directories(
src
${catkin_INCLUDE_DIRS}
)
add_library(
${PROJECT_NAME}
${PROJECT_SOURCE_FILES}
)
# set compiler options and inject version of software (see tile_downloader.h)
# rviz_satellite_VERSION is defined via catkin and is read from the package.xml
target_compile_options(
${PROJECT_NAME}
PUBLIC
-Wall -Wunused -std=c++11 "-DRVIZ_SATELLITE_VERSION=\"${rviz_satellite_VERSION}\""
)
target_link_libraries(
${PROJECT_NAME}
${QT_LIBRARIES}
${catkin_LIBRARIES}
)
## INSTALL ##
install(TARGETS
${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(FILES
plugin_description.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)