summaryrefslogtreecommitdiff
path: root/tools/cmake/DawAddState.cmake
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2025-10-31 23:55:42 +0000
committeronelin <oscar@nelin.dk>2025-11-02 22:07:17 +0000
commitd38deeef3af2316a666f8fc0173940bd769b748e (patch)
tree6e30d4a9eea18daa5705c894f28cd99ff047e8f9 /tools/cmake/DawAddState.cmake
parent6c077751982ea2c7bd2d9262b01b9f8602f80dc8 (diff)
Flatten project structure
This will make it easier to break up the code into smaller chunks again later. One would think doing this seems fun to me at this point.
Diffstat (limited to 'tools/cmake/DawAddState.cmake')
-rw-r--r--tools/cmake/DawAddState.cmake8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/cmake/DawAddState.cmake b/tools/cmake/DawAddState.cmake
index 213b77b..902e814 100644
--- a/tools/cmake/DawAddState.cmake
+++ b/tools/cmake/DawAddState.cmake
@@ -15,7 +15,7 @@
# Then call `daw_add_state(${STATENAME}) for each of your states.
macro(daw_add_state STATENAME)
# Add state include directory to the engines target
- set_property(TARGET daw_core
+ set_property(TARGET daw
APPEND PROPERTY INCLUDE_DIRECTORIES
${CMAKE_SOURCE_DIR}/state_${STATENAME}/include)
@@ -54,7 +54,7 @@ macro(daw_add_state STATENAME)
add_library(${STATENAME} OBJECT ${STATE_SOURCES})
# The game-state source is withing the core module
- set_property(TARGET daw_core
+ set_property(TARGET daw
APPEND PROPERTY INCLUDE_DIRECTORIES
${CMAKE_SOURCE_DIR}/state_${STATENAME}/include
)
@@ -64,10 +64,6 @@ macro(daw_add_state STATENAME)
cglm
)
- set_property(TARGET daw_core
- APPEND PROPERTY LINK_LIBRARIES
- ${STATENAME})
-
set_property(TARGET daw
APPEND PROPERTY LINK_LIBRARIES
${STATENAME})