-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
46 lines (32 loc) · 1.25 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
cmake_minimum_required(VERSION 3.15)
project(RDMnetBroker VERSION 0.1.0)
###################### Compile Options and Configuration ######################
if(WIN32)
add_compile_definitions(NOMINMAX)
endif()
option(RDMNETBROKER_BUILD_TESTS "Build the RDMnet Broker unit tests" OFF)
set(RDMNETBROKER_CMAKE ${CMAKE_CURRENT_LIST_DIR}/tools/cmake)
set(RDMNETBROKER_ROOT ${CMAKE_CURRENT_LIST_DIR})
################################# Dependencies ################################
include(${RDMNETBROKER_CMAKE}/OssDependencyTools.cmake)
determine_compile_environment()
if(NOT COMPILING_AS_OSS)
include(${RDMNETBROKER_CMAKE}/AddCMakeTools.cmake)
endif()
include(${RDMNETBROKER_CMAKE}/ResolveDependencies.cmake)
############################## Standalone support #############################
if(NOT COMPILING_AS_OSS)
include(${CMAKE_TOOLS_MODULES}/QualityGateHelpers.cmake)
setup_standalone_compile()
setup_clang_format()
# TODO: setup_clang_tidy()
setup_address_sanitizer()
endif()
################################### Main app ##################################
add_subdirectory(src)
#################################### Tests ####################################
if(RDMNETBROKER_BUILD_TESTS)
include(GoogleTest)
enable_testing()
add_subdirectory(tests)
endif()