summaryrefslogtreecommitdiff
path: root/tools/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tools/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})