From 5b8541d28d7a487f2ede559f5cf9d065c07cf924 Mon Sep 17 00:00:00 2001 From: scawful Date: Thu, 8 Aug 2024 12:31:44 -0400 Subject: [PATCH] add yaze cmake build flags --- CMakeLists.txt | 8 ++++++++ src/CMakeLists.txt | 19 +++++++++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13c5da19..7f6019c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,14 @@ cmake_minimum_required(VERSION 3.10) # by scawful project(yaze VERSION 0.2.0) +# Build Flags +set(YAZE_BUILD_APP ON) +set(YAZE_BUILD_Z3ED ON) +set(YAZE_BUILD_PYTHON ON) +set(YAZE_BUILD_CLIB ON) +set(YAZE_BUILD_TESTS OFF) +set(YAZE_BUILD_EXTENSIONS OFF) + # C++ Standard Specifications set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ae5747e7..68af46e4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -74,10 +74,21 @@ if(APPLE) set(CMAKE_EXE_LINKER_FLAGS "-framework ServiceManagement -framework Foundation -framework Cocoa") endif() -include(app/CMakeLists.txt) -include(cli/CMakeLists.txt) -# include(ext/CMakeLists.txt) -include(py/CMakeLists.txt) +if (YAZE_BUILD_APP) + include(app/CMakeLists.txt) +endif() + +if (YAZE_BUILD_Z3ED) + include(cli/CMakeLists.txt) +endif() + +if (YAZE_BUILD_EXTENSIONS) + include(ext/CMakeLists.txt) +endif() + +if (YAZE_BUILD_PYTHON) + include(py/CMakeLists.txt) +endif() if (UNIX) target_compile_definitions(yaze PRIVATE "linux")