Skip to content
Discussion options

You must be logged in to vote

Try using MACOSX_PACKAGE_LOCATION, which you can read about here: https://cmake.org/cmake/help/latest/prop_sf/MACOSX_PACKAGE_LOCATION.html

A quick web search shows this example:

# Include the localization directories
# Assuming your localization files are in a 'Resources' subdirectory of your source tree

# For each localization folder (e.g., en.lproj, de.lproj) you need to specify its properties
# A common approach is to find all .lproj directories and apply the property
file(GLOB LPROJ_DIRS "path/to/your/Resources/*.lproj")

foreach(LPROJ_DIR ${LPROJ_DIRS})
    set_source_files_properties(${LPROJ_DIR} PROPERTIES
        MACOSX_PACKAGE_LOCATION "Resources"
    )
endforeach()

# Alternati…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by halx99
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants