-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
92 lines (68 loc) · 1.87 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
81
82
83
84
85
86
87
88
89
90
91
cmake_minimum_required(VERSION 2.8.3)
project(airsim_bridge)
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
message_generation
std_msgs
image_transport
cv_bridge
dynamic_reconfigure
)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
add_message_files(
FILES
ImageMosaicer.msg
)
generate_messages(
DEPENDENCIES
std_msgs
sensor_msgs
airsim_bridge
)
## Access to the precompiled libraries from Airsim
SET (AIRSIM_ADDRESS ${CMAKE_CURRENT_SOURCE_DIR}/external/AirLib)
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR} )
## System dependencies are found with CMake's conventions
#find_package(Boost REQUIRED COMPONENTS system)
# Custom target to include headers and launch files in QtCreator
add_custom_target(dtarget_airsim_bridge SOURCES ${HDRS} ${SRCS} ${LNCH})
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
${catkin_INCLUDE_DIRS}
${AIRSIM_ADDRESS}/include
${AIRSIM_ADDRESS}/include/api
${AIRSIM_ADDRESS}/include/controllers
${AIRSIM_ADDRESS}/deps/rpclib/include/rpc
${AIRSIM_ADDRESS}/deps/eigen3
${AIRSIM_ADDRESS}/include
${OPENCV_INCLUDE_DIRS}
)
link_directories(
${AIRSIM_ADDRESS}/lib/x64/Debug
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES choose_data
CATKIN_DEPENDS message_runtime
# DEPENDS system_lib
)
## Declare a cpp executable
add_executable(airsim_bridge_node src/airsim_bridge_node.cpp)
# set(CUDA_USE_STATIC_CUDA_RUNTIME OFF) #behzad added, need this always
## Specify libraries to link a library or executable target against
target_link_libraries(airsim_bridge_node
${catkin_LIBRARIES}
AirLib
MavLinkCom
rpc
pthread
${OpenCV_LIBS}
)