-
Notifications
You must be signed in to change notification settings - Fork 129
/
CMakeLists.txt
56 lines (43 loc) · 1.38 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
cmake_minimum_required (VERSION 3.14.7)
# The minimum version was chosen from a combination of the need for
# critical bug fixes by CMake, the idea of taking advantage of future
# CMake fixes soon to be released and wanting to fully embrace the
# target oriented CMake build framework. It may be possible to change
# the minimum required version to an earlier version, but there is no
# guarantee of a successful build if changed.
project (rtsdk
VERSION 2.2.3.0
LANGUAGES C CXX)
set(rtsdk_CMAKE_DIR "${rtsdk_SOURCE_DIR}/CMake")
list(APPEND CMAKE_MODULE_PATH ${rtsdk_CMAKE_DIR})
include(rcdevEnvironment)
include(rcdevSupport)
include(rtsdkOptions)
include(rtsdkInfo)
include(rtsdkAdditionalCompilerOptions)
include(rtsdkAdditionalCompilerOptions)
if(BUILD_RTSDK-BINARYPACK)
include(addExternal_rtsdk-binarypack)
endif()
if (BUILD_UNIT_TESTS)
# Google Test
include(addExternal_gtest)
endif()
include(addExternal_zlib)
include(addExternal_lz4)
include(addExternal_libxml2)
include(addExternal_curl)
include(addExternal_cjson)
include(addExternal_ccron)
if(BUILD_ETA_JWT)
include(addExternal_l8w8jwt)
endif()
#
# Set up default build paths if not already defined
if (RCDEV_OUTPUT_DIRECTORY_PREFIX)
rcdev_update_output_dirs("${RCDEV_OUTPUT_DIRECTORY_PREFIX}")
else()
rcdev_update_output_dirs("${rtsdk_SOURCE_DIR}/Cpp-C")
endif()
add_subdirectory( Cpp-C )
unset(_output_dir_prefix)