Fixed annoying bug in build system, and removed binary file from repository tree
This commit is contained in:
parent
063f908d60
commit
a76cbb46c3
@ -48,11 +48,19 @@ add_custom_target (
|
|||||||
add_dependencies(pleascach shaders)
|
add_dependencies(pleascach shaders)
|
||||||
|
|
||||||
# copy assets somewhere accessible by the accessable
|
# copy assets somewhere accessible by the accessable
|
||||||
add_custom_command(
|
if(UNIX)
|
||||||
|
add_custom_command(
|
||||||
|
TARGET shaders POST_BUILD
|
||||||
|
COMMAND cp -r
|
||||||
|
"$<TARGET_PROPERTY:pleascach,SOURCE_DIR>/assets"
|
||||||
|
"$<TARGET_PROPERTY:pleascach,BINARY_DIR>/assets")
|
||||||
|
else()
|
||||||
|
add_custom_command(
|
||||||
TARGET shaders POST_BUILD
|
TARGET shaders POST_BUILD
|
||||||
COMMAND cmake -E copy_directory
|
COMMAND cmake -E copy_directory
|
||||||
"$<TARGET_PROPERTY:pleascach,SOURCE_DIR>/assets"
|
"$<TARGET_PROPERTY:pleascach,SOURCE_DIR>/assets"
|
||||||
"$<TARGET_PROPERTY:pleascach,BINARY_DIR>/assets")
|
"$<TARGET_PROPERTY:pleascach,BINARY_DIR>/assets")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
find_package(glfw3 3.3 REQUIRED)
|
find_package(glfw3 3.3 REQUIRED)
|
||||||
|
|||||||
@ -77,8 +77,8 @@ Renderer::Renderer(Window& win) : win(win) {
|
|||||||
.pApplicationInfo = &app_info,
|
.pApplicationInfo = &app_info,
|
||||||
.enabledLayerCount = 0,
|
.enabledLayerCount = 0,
|
||||||
.ppEnabledLayerNames = nullptr,
|
.ppEnabledLayerNames = nullptr,
|
||||||
.enabledExtensionCount = static_cast<u32>(req_extensions.size()),
|
.enabledExtensionCount = static_cast<u32>(req_instance_extensions.size()),
|
||||||
.ppEnabledExtensionNames = req_extensions.data(),
|
.ppEnabledExtensionNames = req_instance_extensions.data(),
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
BIN
pleascach.exe
BIN
pleascach.exe
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user