-
Notifications
You must be signed in to change notification settings - Fork 2
/
srba-config.cmake.in
43 lines (38 loc) · 1.7 KB
/
srba-config.cmake.in
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
# =========================================================================
# libSRBA CMake configuration file
#
# ** File generated automatically, do not modify **
#
# Usage from an external project:
# In your CMakeLists.txt, add these lines:
#
# FIND_PACKAGE( SRBA REQUIRED )
# INCLUDE_DIRECTORIES(${SRBA_INCLUDE_DIRS})
# FIND_PACKAGE( MRPT REQUIRED ${SRBA_REQUIRED_MRPT_MODULES} ) # You may add additional MRPT modules at the end of the list for your app
#
# This file will define the following variables:
# - SRBA_INCLUDE_DIRS: The list of include directories
# - SRBA_VERSION: The SRBA version (e.g. "1.0.0").
# - SRBA_VERSION_{MAJOR,MINOR,PATCH}: 3 variables for the version parts
# - SRBA_REQUIRED_MRPT_MODULES: The minimum list of required MRPT modules
#
# Remember to link against MRPT libraries in your program with:
#
# TARGET_LINK_LIBRARIES(YOUR_TARGET ${MRPT_LIBS})
#
# =========================================================================
# SRBA version numbers:
SET(SRBA_VERSION @CMAKE_SRBA_FULL_VERSION@)
SET(SRBA_VERSION_MAJOR @CMAKE_SRBA_VERSION_NUMBER_MAJOR@)
SET(SRBA_VERSION_MINOR @CMAKE_SRBA_VERSION_NUMBER_MINOR@)
SET(SRBA_VERSION_PATCH @CMAKE_SRBA_VERSION_NUMBER_PATCH@)
# MRPT dependencies:
SET(SRBA_REQUIRED_MRPT_MODULES base opengl graphs tfest)
# Extract the directory where *this* file has been installed (determined at cmake run-time)
get_filename_component(THIS_SRBA_CONFIG_PATH "${CMAKE_CURRENT_LIST_FILE}" PATH)
SET(SRBA_INCLUDE_DIRS "@THE_INCLUDE_DIRECTORIES@") # SRBA include directories
# Compiler flags:
if(MSVC)
# For MSVC to avoid the C1128 error about too large object files:
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
endif(MSVC)