Almost done with new language tools
This commit is contained in:
@ -3,16 +3,22 @@
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
# Custom variables
|
||||
set(
|
||||
DAWN_TARGET_DEPENDENCIES_LAST
|
||||
CACHE INTERNAL ${DAWN_CACHE_TARGET}
|
||||
)
|
||||
|
||||
# Include shared libs
|
||||
add_subdirectory(dawnshared)
|
||||
|
||||
# Include tools
|
||||
add_subdirectory(dawntools)
|
||||
|
||||
# Change what we are building
|
||||
# Change what we are building. Pulled from the cmake/targets dir.
|
||||
add_subdirectory(${DAWN_BUILDING})
|
||||
|
||||
# Check the game project includes the target name
|
||||
# Validate game project includes the target name
|
||||
if(NOT DEFINED DAWN_TARGET_NAME)
|
||||
message(FATAL_ERROR "You need to define a DAWN_TARGET_NAME")
|
||||
endif()
|
||||
@ -46,4 +52,11 @@ if(DAWN_TARGET_SDL2)
|
||||
add_subdirectory(dawnopengl)
|
||||
endif()
|
||||
|
||||
add_subdirectory(dawnopenal)
|
||||
add_subdirectory(dawnopenal)
|
||||
|
||||
# Late definitions, used by tools
|
||||
if(NOT DAWN_TARGET_DEPENDENCIES_LAST)
|
||||
# message(FATAL_ERROR "List empty")
|
||||
else()
|
||||
add_dependencies(${DAWN_TARGET_NAME} ${DAWN_TARGET_DEPENDENCIES_LAST})
|
||||
endif()
|
Reference in New Issue
Block a user