-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (26 loc) · 1003 Bytes
/
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
cmake_minimum_required(VERSION 3.5.1)
project(vland)
set(CMAKE_CXX_STANDARD 14)
find_package(OpenCV REQUIRED)
message(STATUS "OpenCV include dirs: ${OpenCV_INCLUDE_DIRS}, libs: ${OpenCV_LIBRARIES}")
include_directories(${OpenCV_INCLUDE_DIRS})
add_subdirectory(modules/cmake_deb_helpers)
set(CMAKE_MODULE_PATH "${cmake_deb_helpers_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
include(installation)
include(deb_target)
add_subdirectory(generated)
add_executable(main_node src/main.cpp)
target_link_libraries(main_node
mpc_6dof
opencv_core)
add_install_component(vland)
install(TARGETS main_node DESTINATION /usr/bin COMPONENT vland)
set(DEB_VERSION 1.0)
add_deb_target(vland)
set(REMOTE_BUILD_COMMAND
ssh [email protected] 'cd vland && git pull && rm -rf build/* && cd build && cmake ../ && make -j6 main_node && make -j6 deb'
)
message(${REMOTE_BUILD_COMMAND})
add_custom_target(remote_build
COMMAND ${REMOTE_BUILD_COMMAND}
DEPENDS main_node deb)