mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
fix it for msvc
This commit is contained in:
parent
e8ba8c41e3
commit
d62ca209f2
2 changed files with 4 additions and 2 deletions
1
.github/workflows/windows.yml
vendored
1
.github/workflows/windows.yml
vendored
|
|
@ -41,7 +41,6 @@ jobs:
|
||||||
timeout-minutes: 1
|
timeout-minutes: 1
|
||||||
- name: Package for Windows
|
- name: Package for Windows
|
||||||
run: |
|
run: |
|
||||||
tree
|
|
||||||
mkdir packaged
|
mkdir packaged
|
||||||
cp -r build/Release/* packaged/
|
cp -r build/Release/* packaged/
|
||||||
cp build/vctest/Release/vctest.exe packaged/
|
cp build/vctest/Release/vctest.exe packaged/
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,10 @@ target_link_options(VoxelEngine PRIVATE $<$<CXX_COMPILER_ID:GNU>:-no-pie>)
|
||||||
|
|
||||||
# Deploy res to build dir
|
# Deploy res to build dir
|
||||||
if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/res)
|
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()
|
endif()
|
||||||
|
|
||||||
if(VOXELENGINE_BUILD_TESTS)
|
if(VOXELENGINE_BUILD_TESTS)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue