all repos — mgba @ 13b6adee5653d733c2c1d2031fb20a774802a1fe

mGBA Game Boy Advance Emulator

Qt: Tiny CMake cleanup
Jeffrey Pfau jeffrey@endrift.com
Wed, 05 Oct 2016 00:35:14 -0700
commit

13b6adee5653d733c2c1d2031fb20a774802a1fe

parent

74d140ed8b9230bcb72ab0a1010a34d5c8a15aec

1 files changed, 8 insertions(+), 5 deletions(-)

jump to
M src/platform/qt/CMakeLists.txtsrc/platform/qt/CMakeLists.txt

@@ -175,16 +175,19 @@

if(USE_GDB_STUB) list(APPEND PLATFORM_SRC GDBController.cpp GDBWindow.cpp) endif() -set(MACOSX_BUNDLE_ICON_FILE mgba.icns) -set(MACOSX_BUNDLE_BUNDLE_VERSION ${LIB_VERSION_STRING}) -set(MACOSX_BUNDLE_BUNDLE_NAME ${PROJECT_NAME}) -set(MACOSX_BUNDLE_GUI_IDENTIFIER com.endrift.${BINARY_NAME}-qt) -set_source_files_properties(${CMAKE_SOURCE_DIR}/res/mgba.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources) qt5_add_resources(RESOURCES resources.qrc) +if(APPLE) + set(MACOSX_BUNDLE_ICON_FILE mgba.icns) + set(MACOSX_BUNDLE_BUNDLE_VERSION ${LIB_VERSION_STRING}) + set(MACOSX_BUNDLE_BUNDLE_NAME ${PROJECT_NAME}) + set(MACOSX_BUNDLE_GUI_IDENTIFIER com.endrift.${BINARY_NAME}-qt) + set_source_files_properties(${CMAKE_SOURCE_DIR}/res/mgba.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources) +endif() if(WIN32) configure_file(${CMAKE_SOURCE_DIR}/res/mgba.rc.in ${CMAKE_BINARY_DIR}/res/mgba.rc) list(APPEND RESOURCES ${CMAKE_BINARY_DIR}/res/mgba.rc) + set_source_files_properties(${CMAKE_BINARY_DIR}/res/mgba.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_SOURCE_DIR}/res/mgba.ico) if(QT_STATIC) list(APPEND QT_LIBRARIES qwindows Qt5PlatformSupport imm32) endif()