diff options
| author | Levent Kaya <levent@dev> | 2025-11-05 22:11:58 +0300 |
|---|---|---|
| committer | Levent Kaya <levent@dev> | 2025-11-05 22:11:58 +0300 |
| commit | f6f40266ba57ab2df99b897c375f85f0a8a97856 (patch) | |
| tree | a344923e53224f646fbcbb1abaf3befe6e1ea0d5 /CMakeLists.txt | |
| parent | ce4e4020854e106ead6f505094c668cd896d8817 (diff) | |
[feature] basic structure
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..3669e77 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,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() |
