Add DEBUG_ENGINE as compile definition instead of using build_config

This commit is contained in:
abdelrahman committed 2023-11-04 22:11:54 +00:00
1 parent 5c0f2702ae
commit b74f7c6e3a
10 files changed
+233 -104

No files matched your search

+3 -4
View File
@@ -3,11 +3,11 @@ cmake_minimum_required(VERSION 3.10)
project(Punchie)
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set(DEBUG_ENGINE ON)
add_compile_definitions("DEBUG_ENGINE=1")
else()
add_compile_definitions("DEBUG_ENGINE=0")
endif()
configure_file(engine_build_config.h.in engine_build_config.h)
# VARIABLES
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
@@ -53,7 +53,6 @@ target_link_libraries(${PROJECT_NAME} PUBLIC
)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/engine_build_config.h
include/aliases.h
include/constants.h
include/GameEngine.h