-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
40 lines (31 loc) · 1.05 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
#--------------------------------------------------------
# The CMakeLists.txt for: iPX4
# Author(s): David Battle, Mission Systems Pty Ltd
# Based on iArduSubComms by Muthukumaran Chandrasekaran
#--------------------------------------------------------
cmake_minimum_required(VERSION 3.5)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $ENV{HOME}/bin)
set(CMAKE_INSTALL_PREFIX /usr/local/bin)
project(moos-ipx4)
#===============================================================================
# FINDING MOOS' HEADERS AND LIBRARIES...
#===============================================================================
find_package(MOOS 10.0)
set(SRC
main.cpp
PX4.cpp
PX4_Info.cpp)
add_executable(iPX4 ${SRC})
message("MOOS_LIBRARIES: " ${MOOS_DIR})
target_include_directories(iPX4 PUBLIC
./
${MOOS_DIR}/../../../include/ivp
$ENV{HOME}/src/mavlink/include/common
${MOOS_INCLUDE_DIRS})
target_link_libraries(iPX4
${MOOS_DIR}/../../../lib/libmbutil.a
${MOOS_LIBRARIES}
boost_system)
install(TARGETS iPX4
DESTINATION ${CMAKE_INSTALL_PREFIX}
)