From 379cfe14600000f4892d1387c23acb458c33a9d2 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Wed, 11 Oct 2023 17:57:48 -0700 Subject: [PATCH] adding build flags --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a74ec11..5e09c92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,10 @@ else() # nothing special for gcc at the moment endif() endif() +add_compile_definitions(KGE_PLATFORM=${CMAKE_HOST_SYSTEM_NAME}) +add_compile_definitions(KGE_VERSION=${PROJECT_VERSION}) + +message(STATUS "Build system: ${CMAKE_HOST_SYSTEM_NAME}") if(${BUILD_GUI}) include(cmake/imgui.cmake)