macOS: App Bundle "Resouces" directory structure
I literally spent 2 days on this already. Is simplest copy_directory is a way to do this? What I mean I have a project structure
assets/subfolders + files
src/main.cpp
CMakeList.txt
CMakeList.txt
add_executable(hello src/main.cpp)
set_target_properties(hello PROPERTIES
MACOSX_BUNDLE TRUE
RESOURCE "??? folders / files ??? ")
Also I can't understand how to use it, what I mean such target properties generates hello.app, but "Resources" not shows up!
file(GLOB_RECURSE RES_SOURCES "${PROJECT_SOURCE_DIR}/assets/*")
add_executable(hello MACOSX_BUNDLE src/main.cpp ${RES_SOURCES}) #
SET_SOURCE_FILES_PROPERTIES(${RES_SOURCES} MACOSX_PACKAGE_LOCATION "Resources")
It does copy all res sources to "Resources" folder, but hierarchy is being lost!
Hope I can find some help here, thanks!