Merge pull request #21 from coderloff/dev
build: Make editor resources path absolute to prevent losing the track
This commit is contained in:
commit
f98c820003
@ -14,7 +14,7 @@ add_executable(${NAME})
|
||||
# Add resources folder
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
file(COPY ${EDITOR_RESOURCES_DIR} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_compile_definitions(${NAME} PUBLIC EDITOR_RESOURCES_PATH="resources/")
|
||||
target_compile_definitions(${NAME} PUBLIC EDITOR_RESOURCES_PATH="${CMAKE_CURRENT_BINARY_DIR}/resources/")
|
||||
else()
|
||||
target_compile_definitions(${NAME} PUBLIC EDITOR_RESOURCES_PATH="${CMAKE_CURRENT_SOURCE_DIR}/resources/")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user