add yaze cmake build flags

This commit is contained in:
scawful
2024-08-08 12:31:44 -04:00
parent 60569572ca
commit 5b8541d28d
2 changed files with 23 additions and 4 deletions

View File

@@ -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)

View File

@@ -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")