Skip to content

Commit

Permalink
Fix installation path on macOS to be /Applications when bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiaholmquist committed Oct 25, 2024
1 parent ec38677 commit db4f67b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/platform/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ if(WIN32 AND PLATFORM_QT_STATIC)
target_link_libraries(NanoBoyAdvance-Qt PRIVATE z zstd $<$<CXX_COMPILER_ID:GNU>:gcc stdc++ winpthread>)
endif()

install(TARGETS NanoBoyAdvance-Qt DESTINATION bin)
if(APPLE AND MACOS_BUILD_APP_BUNDLE)
install(TARGETS NanoBoyAdvance-Qt BUNDLE DESTINATION Applications)
else()
install(TARGETS NanoBoyAdvance-Qt DESTINATION bin)
endif()

# Variables LINUX and BSD were introduced only with CMake 3.25.
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
install(FILES rc/io.nanoboyadvance.NanoBoyAdvance.png DESTINATION share/icons/hicolor/128x128/apps)
Expand Down

0 comments on commit db4f67b

Please sign in to comment.