all repos — mgba @ d40d4c1cf226761bb8d6ec8e40b7da3cd17add99

mGBA Game Boy Advance Emulator

Use ICO file on Windows
Jeffrey Pfau jeffrey@endrift.com
Sat, 25 Oct 2014 03:21:46 -0700
commit

d40d4c1cf226761bb8d6ec8e40b7da3cd17add99

parent

b51ec046da2b10736cc4109476f1c215fd031f98

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
A res/mgba.rc

@@ -0,0 +1,1 @@

+IDI_ICON1 ICON DISCARDABLE "mgba.ico"
M src/platform/qt/CMakeLists.txtsrc/platform/qt/CMakeLists.txt

@@ -49,7 +49,9 @@ 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) -message(STATUS ${RESOURCES}) +if(WIN32) + list(APPEND RESOURCES ${CMAKE_SOURCE_DIR}/res/mgba.rc) +endif() add_executable(mGBA WIN32 MACOSX_BUNDLE main.cpp ${CMAKE_SOURCE_DIR}/res/mgba.icns ${SOURCE_FILES} ${UI_FILES} ${RESOURCES}) set_target_properties(mGBA PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/res/info.plist.in)