From 912eb7950cc93d984d2c29149c29775de3a0e234 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 23 Mar 2018 11:54:52 -1000 Subject: [PATCH] Add amuse-gui .rc in CMake --- Editor/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Editor/CMakeLists.txt b/Editor/CMakeLists.txt index 424de6c..39ef6f1 100644 --- a/Editor/CMakeLists.txt +++ b/Editor/CMakeLists.txt @@ -8,6 +8,14 @@ find_package(Qt5Widgets) find_package(Qt5Network) find_package(Qt5Xml) +if(WIN32) + list(APPEND PLAT_SRCS platforms/win/amuse-gui.rc platforms/win/amuse-gui.manifest) +elseif(APPLE) + list(APPEND PLAT_SRCS platforms/mac/mainicon.icns) + set_source_files_properties(platforms/mac/mainicon.icns PROPERTIES + MACOSX_PACKAGE_LOCATION Resources) +endif() + add_subdirectory(platforms/freedesktop) declare_qticon_target() list(APPEND PLAT_SRCS mainicon_qt.cpp)