aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt45
1 files changed, 33 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19518bf..0e8dc26 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,10 +15,10 @@ add_subdirectory(3rdparty/tracy)
# ==============================================================================
-file(GLOB_RECURSE commonthings_SOURCES source-common/*.c source-common/*.cpp)
-add_library(commonthings OBJECT ${commonthings_SOURCES})
+file(GLOB_RECURSE things_common_SOURCES source-common/*.c source-common/*.cpp)
+add_library(things_common OBJECT ${things_common_SOURCES})
-set_target_properties(commonthings PROPERTIES
+set_target_properties(things_common PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
@@ -27,8 +27,8 @@ set_target_properties(commonthings PROPERTIES
UNITY_BUILD OFF
)
-target_include_directories(commonthings PUBLIC source-common)
-target_link_libraries(commonthings PUBLIC
+target_include_directories(things_common PUBLIC source-common)
+target_link_libraries(things_common PUBLIC
# External dependencies
${CONAN_LIBS}
glm::glm
@@ -37,25 +37,45 @@ target_link_libraries(commonthings PUBLIC
# ==============================================================================
# NOTE: delibrately not recursive, see README.md in the folder for details
-file(GLOB meta_codegen_SOURCES buildtools/codegen/*.c buildtools/codegen/*.cpp)
-add_executable(meta_codegen ${meta_codegen_SOURCES})
+file(GLOB codegen_SOURCES buildtools/codegen/*.c buildtools/codegen/*.cpp)
+add_executable(codegen ${codegen_SOURCES})
-set_target_properties(meta_codegen PROPERTIES
+set_target_properties(codegen PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
UNITY_BUILD OFF
)
-target_link_libraries(meta_codegen PRIVATE
+target_link_libraries(codegen PRIVATE
# External dependencies
${CONAN_LIBS}
# Project internal components
- commonthings
+ things_common
)
-target_flag_rtti(meta_codegen OFF)
+target_flag_rtti(codegen OFF)
+
+# ==============================================================================
+
+file(GLOB_RECURSE things_codegen_base_SOURCES source-common/*.c source-common/*.cpp)
+add_library(things_codegen_base OBJECT ${things_codegen_base_SOURCES})
+
+set_target_properties(things_common PROPERTIES
+ CXX_STANDARD 20
+ CXX_STANDARD_REQUIRED ON
+ CXX_EXTENSIONS OFF
+)
+
+target_include_directories(things_codegen_base PUBLIC source-codegen-base)
+target_link_libraries(things_codegen_base PUBLIC
+ # External dependencies
+ ${CONAN_LIBS}
+
+ # Project internal components
+ things_common
+)
# ==============================================================================
@@ -95,7 +115,8 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
tracy
# Project internal components
- commonthings
+ things_common
+ things_metadata
)
option(BRUSSEL_ENABLE_PROFILING "Whether profiling support is enabled or not." OFF)