From d254403ae15b572735ab7fa00780d689d028353f Mon Sep 17 00:00:00 2001 From: onelin Date: Sun, 16 Mar 2025 11:16:16 +0100 Subject: Enable some compilation flags --- src/core/CMakeLists.txt | 1 + src/ctrl/CMakeLists.txt | 1 + src/rendering/CMakeLists.txt | 1 + src/resources/CMakeLists.txt | 1 + src/utils/CMakeLists.txt | 1 + 5 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index d67016b..100506a 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -13,6 +13,7 @@ add_library(daw_core #set_property(SOURCE src/loop.c APPEND PROPERTY OBJECT_DEPENDS ${GLAD_HEADER}) +target_compile_options(daw_core PUBLIC ${BUILD_OPTS}) target_include_directories(daw_core PRIVATE ${DAW_INCLUDE_DIRS}) target_link_libraries(daw_core PRIVATE cglm) diff --git a/src/ctrl/CMakeLists.txt b/src/ctrl/CMakeLists.txt index e7dd0a9..a8525b0 100644 --- a/src/ctrl/CMakeLists.txt +++ b/src/ctrl/CMakeLists.txt @@ -6,5 +6,6 @@ add_library(daw_ctrl src/mouse.c ) +target_compile_options(daw_ctrl PUBLIC ${BUILD_OPTS}) target_include_directories(daw_ctrl PRIVATE ${DAW_INCLUDE_DIRS}) target_link_libraries(daw_ctrl PRIVATE cglm glfw) diff --git a/src/rendering/CMakeLists.txt b/src/rendering/CMakeLists.txt index f19cce0..237f147 100644 --- a/src/rendering/CMakeLists.txt +++ b/src/rendering/CMakeLists.txt @@ -21,6 +21,7 @@ add_custom_command( set_property(SOURCE src/window.c APPEND PROPERTY OBJECT_DEPENDS ${GLAD_HEADER}) set_property(SOURCE src/rendering.c APPEND PROPERTY OBJECT_DEPENDS ${GLAD_HEADER}) +target_compile_options(daw_rendering PUBLIC ${BUILD_OPTS}) target_include_directories(daw_rendering PRIVATE ${DAW_INCLUDE_DIRS}) target_link_libraries(daw_rendering PRIVATE OpenGL::GL diff --git a/src/resources/CMakeLists.txt b/src/resources/CMakeLists.txt index 8fd9413..9934cc1 100644 --- a/src/resources/CMakeLists.txt +++ b/src/resources/CMakeLists.txt @@ -13,6 +13,7 @@ add_library(daw_resources src/model.c ) +target_compile_options(daw_resources PUBLIC ${BUILD_OPTS}) target_include_directories(daw_resources PRIVATE ${DAW_INCLUDE_DIRS}) target_link_libraries(daw_resources PRIVATE assimp diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt index 64f5586..5e4d0d9 100644 --- a/src/utils/CMakeLists.txt +++ b/src/utils/CMakeLists.txt @@ -7,4 +7,5 @@ add_library(daw_utils src/vector.c ) +target_compile_options(daw_utils PUBLIC ${BUILD_OPTS}) target_include_directories(daw_utils PRIVATE ${DAW_INCLUDE_DIRS}) -- cgit v1.3