aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-05-07 17:27:01 -0700
committerhnOsmium0001 <[email protected]>2022-05-07 17:27:01 -0700
commit921f756855b9e19363cb79355d12bb8d683ffc06 (patch)
tree55b2cac14f3498e36860039b8c8c3ea698c7db82 /CMakeLists.txt
parent1d924459c84b9d5fbd6c08743f733abad5a03c2b (diff)
Reduce dependency between editor headers and main game headers
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0e328ed..ad2bf16 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,6 +54,14 @@ if(BRUSSEL_ENABLE_PROFILING)
)
endif()
+option(BRUSSEL_ENABLE_EDITOR "Enable editor support or not." ON)
+if(BRUSSEL_ENABLE_EDITOR)
+ target_compile_definitions(${PROJECT_NAME}
+ PRIVATE
+ BRUSSEL_ENABLE_EDITOR=1
+ )
+endif()
+
option(BRUSSEL_ENABLE_ASAN "Enable AddressSanitizer or not." OFF)
if(BRUSSEL_ENABLE_ASAN)
target_compile_options(${PROJECT_NAME}