Fixed cmake file issue.

This commit is contained in:
Samuel Walker 2024-09-03 13:30:49 -06:00
parent 34c5a0d140
commit 61ca7e7695

View File

@ -7,7 +7,7 @@ FILE(GLOB Sources src/*.cpp)
FILE(GLOB Resources res/*)
add_executable(raycaster ${Sources} deps/glad/src/glad.c)
configure_file(src/RaycasterConfig.h.in RaycasterConfig.h)
add_custom_command(TARGET raycaster POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E rm -r ${CMAKE_BINARY_DIR}/res)
add_custom_command(TARGET raycaster POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E rm -rf ${CMAKE_BINARY_DIR}/res)
add_custom_command(TARGET raycaster POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy_directory ${CMAKE_SOURCE_DIR}/res/ ${CMAKE_BINARY_DIR}/res)
#FILE(COPY ${Resources} DESTINATION ${CMAKE_BINARY_DIR}/res)
target_include_directories(raycaster PUBLIC