30 lines
629 B
CMake
30 lines
629 B
CMake
file(GLOB_RECURSE SANDBOX_RECURSE
|
|
CONFIGURE_DEPENDS
|
|
src/*.cpp
|
|
)
|
|
|
|
add_executable(Sandbox
|
|
${SANDBOX_RECURSE}
|
|
)
|
|
|
|
target_include_directories(Sandbox
|
|
PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
)
|
|
|
|
target_link_libraries(Sandbox
|
|
PRIVATE
|
|
DeerithServer
|
|
)
|
|
|
|
add_custom_target(DeerithSandboxTextures ALL
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/textures"
|
|
"${CMAKE_CURRENT_BINARY_DIR}/textures"
|
|
COMMENT "Copying DeerithClient shaders"
|
|
)
|
|
|
|
target_compile_definitions(Sandbox PRIVATE
|
|
$<$<CONFIG:Debug>:DEBUG>
|
|
) |