diff options
| author | onelin <oscar@nelin.dk> | 2025-10-31 23:55:42 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-11-02 22:07:17 +0000 |
| commit | d38deeef3af2316a666f8fc0173940bd769b748e (patch) | |
| tree | 6e30d4a9eea18daa5705c894f28cd99ff047e8f9 /tools | |
| parent | 6c077751982ea2c7bd2d9262b01b9f8602f80dc8 (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')
| -rw-r--r-- | tools/cmake/DawAddState.cmake | 8 |
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}) |
