From f6f40266ba57ab2df99b897c375f85f0a8a97856 Mon Sep 17 00:00:00 2001 From: Levent Kaya Date: Wed, 5 Nov 2025 22:11:58 +0300 Subject: [feature] basic structure --- CMakeLists.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') 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() -- cgit v1.2.3