-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
33 lines (25 loc) · 734 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
project(robotlocomotion-lcmtypes)
cmake_minimum_required(VERSION 3.1)
include(CMakePackageConfigHelpers)
include(GenerateExportHeader)
find_package(PythonInterp)
find_package(Java)
find_package(bot2-core REQUIRED)
if(JAVA_FOUND)
include(UseJava)
endif()
# Enable ELF hidden visibility
set(CMAKE_C_VISIBILITY_PRESET "hidden")
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
if(POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
# TODO remove when minimum CMake >= 3.7
if(CMAKE_VERSION VERSION_LESS 3.7)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
endif()
find_package(lcm REQUIRED)
include(${LCM_USE_FILE})
add_subdirectory(lcmtypes)
add_subdirectory(pkgconfig)