mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
fix it for msvc
This commit is contained in:
parent
e8ba8c41e3
commit
d62ca209f2
2 changed files with 4 additions and 2 deletions
|
|
@ -38,7 +38,10 @@ target_link_options(VoxelEngine PRIVATE $<$<CXX_COMPILER_ID:GNU>:-no-pie>)
|
|||
|
||||
# Deploy res to build dir
|
||||
if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/res)
|
||||
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/res DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||
if (NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
||||
endif()
|
||||
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/res DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
||||
endif()
|
||||
|
||||
if(VOXELENGINE_BUILD_TESTS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue