-
Notifications
You must be signed in to change notification settings - Fork 23
/
CMakeLists.txt
26 lines (20 loc) · 957 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
cmake_minimum_required(VERSION 3.1)
project(control_box_rst)
set(MESSAGE_SUPPORT OFF CACHE BOOL "Message support (downloads and compiles Protobuf)" FORCE)
set(RPC_SUPPORT OFF CACHE BOOL "Network communication (downloads and comiles gRPC, requires MESSAGE_SUPPORT" FORCE)
set(YAML_SUPPORT OFF CACHE BOOL "Yaml support" FORCE)
set(BUILD_GUI OFF CACHE BOOL "Build gui (requires QT)" FORCE)
set(BUILD_TESTS OFF CACHE BOOL "Build unit tests" FORCE)
# Set to Release in order to speed up the program significantly
set(CMAKE_BUILD_TYPE Release) #None, Debug, Release, RelWithDebInfo, MinSizeRel
if (BUILD_TESTING)
message(STATUS "Tests are currently deactivated.")
#set(BUILD_TESTS ON)
endif()
if(CATKIN_ENABLE_TESTING AND NOT CATKIN_SKIP_TESTING)
message(STATUS "Catkin testing is currently deactivated.")
#set(BUILD_TESTS ON)
endif()
add_subdirectory(src)
# Install catkin package.xml
install(FILES package.xml DESTINATION share/control_box_rst)