forked from seer-robotics/SSLRadio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
75 lines (56 loc) · 1.46 KB
/
CMakeLists.txt
File metadata and controls
75 lines (56 loc) · 1.46 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cmake_minimum_required(VERSION 3.5.2)
# WIN32 means windows, including Win64
# APPLE means macOS
# UNIX means Unix like system
project(SSLRadio)
set(RBK_PLUGIN "RBK_PLUGIN")
set(RBK_PATH "" CACHE PATH "RoboKit SDK path")
IF(RBK_PATH STREQUAL "")
message(FATAL_ERROR "RBK_PATH is not set")
ENDIF()
list(APPEND CMAKE_MODULE_PATH ${RBK_PATH}/cmake)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(GetSubprojectStatus)
# is sub project
get_subproject_status(IS_SUBPROJECT)
# configs when build as independent project
# -----------------------------------------
IF(NOT IS_SUBPROJECT)
# config file
# -----------
include(rbkConfig)
# global settings
# ---------------
include(GlobalSettings)
# Include our cmake macros
# ------------------------
include(CMakeHelpers)
# logging
# -------
include(CMakeLogging)
# build type (affects debugging symbols and optimization)
# -------------------------------------------------------
include(BuildType)
# compiler flags
# --------------
include(CompilerFlags)
# find libs
# ---------
message("Finding libraries:")
message("-----------------------------------------------------")
include(GetThirdPartyLibs)
# default includes
# ----------------
include(DefaultIncludes)
# other settings
# --------------
include(RBKOtherSettings)
ENDIF()
# custom config file
# ------------------
include(rbkPluginConfig)
message("")
# add subfolders
# --------------
add_subdirectory(src)