-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
43 lines (35 loc) · 1.23 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
cmake_minimum_required(VERSION 3.5)
# Set default build to Release
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type specified, setting to Release")
set(CMAKE_BUILD_TYPE Release)
endif()
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
add_subdirectory("cpp")
add_subdirectory("python")
add_custom_command(
OUTPUT export_firemapping_command
COMMAND cp "${CMAKE_CURRENT_BINARY_DIR}/cpp/firemapping.cpython*.so" ${CMAKE_CURRENT_SOURCE_DIR}/python/fire_rs/
DEPENDS firemapping
)
add_custom_target(
export_firemapping ALL DEPENDS export_firemapping_command
)
add_custom_command(
OUTPUT export_uav_planning_command
COMMAND cp "${CMAKE_CURRENT_BINARY_DIR}/cpp/uav_planning.cpython*.so" ${CMAKE_CURRENT_SOURCE_DIR}/python/fire_rs/
DEPENDS uav_planning
)
add_custom_target(
export_uav_planning ALL DEPENDS export_uav_planning_command
)
if(WITH_IMC_INTERFACE)
add_custom_command(
OUTPUT export_neptus_interface_command
COMMAND cp "${CMAKE_CURRENT_BINARY_DIR}/cpp/neptus_interface.cpython*.so" ${CMAKE_CURRENT_SOURCE_DIR}/python/fire_rs/
DEPENDS neptus_interface
)
add_custom_target(
export_neptus_interface ALL DEPENDS export_neptus_interface_command
)
endif(WITH_IMC_INTERFACE)