-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (30 loc) · 865 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
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.14)
project(liblichtenstein)
#[[
# Set up some search paths
#]]
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")
#[[
# Shared C++ options
#]]
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_VERBOSE_MAKEFILE ON)
# enable address and ub sanitizer
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -fsanitize=undefined,address,integer")
set(CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS} -fno-omit-frame-pointer -fsanitize=undefined,address,integer")
#[[
# libLichtensteinProto - Static protocol library
#]]
add_subdirectory(protocol)
#[[
# libLichtensteinIo - Static library with IO helpers
#]]
add_subdirectory(io)
#[[
# libLichtenteinClient - Dynamic client protocol handler
#]]
add_subdirectory(client)
#[[
# libLichtensteinTests - testing for library (with Catch2)
#]]
add_subdirectory(tests)