diff --git a/editor/CMakeLists.txt b/editor/CMakeLists.txt index 5f10860..29e5806 100644 --- a/editor/CMakeLists.txt +++ b/editor/CMakeLists.txt @@ -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()