aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0e8dc26..55db14b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,12 +57,17 @@ target_link_libraries(codegen PRIVATE
target_flag_rtti(codegen OFF)
+option(BRUSSEL_CODEGEN_DEBUG_PRINT "Enable debug printing in the code generator or not." OFF)
+if(BRUSSEL_CODEGEN_DEBUG_PRINT)
+ target_compile_definitions(codegen PRIVATE CODEGEN_DEBUG_PRINT=1)
+endif()
+
# ==============================================================================
-file(GLOB_RECURSE things_codegen_base_SOURCES source-common/*.c source-common/*.cpp)
+file(GLOB_RECURSE things_codegen_base_SOURCES source-codegen-base/*.c source-codegen-base/*.cpp)
add_library(things_codegen_base OBJECT ${things_codegen_base_SOURCES})
-set_target_properties(things_common PROPERTIES
+set_target_properties(things_codegen_base PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
@@ -116,7 +121,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
# Project internal components
things_common
- things_metadata
+ things_codegen_base
)
option(BRUSSEL_ENABLE_PROFILING "Whether profiling support is enabled or not." OFF)