mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
added bin directory to build process to allow resources to load from exectuable
This commit is contained in:
@@ -115,7 +115,7 @@ foreach(CHAPTER ${CHAPTERS})
|
|||||||
target_link_libraries(${DEMO} ${LIBS})
|
target_link_libraries(${DEMO} ${LIBS})
|
||||||
set_target_properties(${DEMO}
|
set_target_properties(${DEMO}
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/${CHAPTER}"
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/bin/${CHAPTER}"
|
||||||
)
|
)
|
||||||
# copy shader files to build directory
|
# copy shader files to build directory
|
||||||
file(GLOB SHADERS
|
file(GLOB SHADERS
|
||||||
@@ -138,6 +138,4 @@ endforeach(CHAPTER)
|
|||||||
|
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/includes)
|
include_directories(${CMAKE_SOURCE_DIR}/includes)
|
||||||
|
|
||||||
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/resources DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user