summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 3669e775f848a3376fb49c3f28be51e4388fef94 (plain)
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
cmake_minimum_required(VERSION 3.15)
project(boltdbg VERSION 0.1.0 LANGUAGES C CXX)

# Load BoltDBG option definitions first
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
include(BoltDbgOptions)

# Some basic options
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_C_STANDARD 11)

# include helper modules
include(compiler_warnings)
include(Sanitizer)
include(PlatformConfig)
#include(CodeStyle)

# src
add_subdirectory(src)

# add optional format targets if enabled
if (BOLTDBG_ENABLE_FORMAT_TARGET)
    #add_clang_format_target(boltdbg)
endif()

# Tests
if (BOLTDBG_BUILD_TESTS)
    enable_testing()
    add_subdirectory(tests)
endif()