diff --git a/CMakeLists.txt b/CMakeLists.txt index 30d38e9..473b186 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ include(KDEClangFormat) include(FeatureSummary) include(FetchContent) include(ECMGenerateExportHeader) +include(ECMAddAppIcon) ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX NOVUS diff --git a/armoury/CMakeLists.txt b/armoury/CMakeLists.txt index db968a7..0fb5f16 100644 --- a/armoury/CMakeLists.txt +++ b/armoury/CMakeLists.txt @@ -51,6 +51,15 @@ target_link_libraries(novus-armoury install(TARGETS novus-armoury ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS}) +ecm_add_app_icon(novus-armoury + ICONS + zone.xiv.armoury.svg + ${CMAKE_SOURCE_DIR}/resources/16-armoury.png + ${CMAKE_SOURCE_DIR}/resources/32-armoury.png + ${CMAKE_SOURCE_DIR}/resources/48-armoury.png + ${CMAKE_SOURCE_DIR}/resources/256-armoury.png +) + if (WIN32) install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR}) else() diff --git a/karuku/CMakeLists.txt b/karuku/CMakeLists.txt index e69bc4a..7ad8718 100644 --- a/karuku/CMakeLists.txt +++ b/karuku/CMakeLists.txt @@ -26,6 +26,15 @@ target_link_libraries(novus-karuku install(TARGETS novus-karuku ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS}) +ecm_add_app_icon(novus-karuku + ICONS + zone.xiv.karaku.svg + ${CMAKE_SOURCE_DIR}/resources/16-excel.png + ${CMAKE_SOURCE_DIR}/resources/32-excel.png + ${CMAKE_SOURCE_DIR}/resources/48-excel.png + ${CMAKE_SOURCE_DIR}/resources/256-excel.png +) + if (WIN32) install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR}) else() diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt index 96d19e4..08078e3 100644 --- a/launcher/CMakeLists.txt +++ b/launcher/CMakeLists.txt @@ -19,12 +19,26 @@ target_include_directories(novus-launcher PUBLIC include) install(TARGETS novus-launcher ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS}) if (WIN32) + set_target_properties( + novus-launcher + PROPERTIES WIN32_EXECUTABLE TRUE + ) + install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR}) else() install(FILES zone.xiv.novus.desktop DESTINATION ${KDE_INSTALL_APPDIR}) install(FILES zone.xiv.novus.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps) endif() +ecm_add_app_icon(novus-launcher + ICONS + zone.xiv.novus.svg + ${CMAKE_SOURCE_DIR}/resources/16-launcher.png + ${CMAKE_SOURCE_DIR}/resources/32-launcher.png + ${CMAKE_SOURCE_DIR}/resources/48-launcher.png + ${CMAKE_SOURCE_DIR}/resources/256-launcher.png +) + # We only need to call deploy on one executable qt_generate_deploy_app_script( TARGET novus-launcher diff --git a/mapeditor/CMakeLists.txt b/mapeditor/CMakeLists.txt index 4c3dc50..c46cd3d 100644 --- a/mapeditor/CMakeLists.txt +++ b/mapeditor/CMakeLists.txt @@ -26,6 +26,15 @@ target_link_libraries(novus-mapeditor install(TARGETS novus-mapeditor ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS}) +ecm_add_app_icon(novus-mapeditor + ICONS + zone.xiv.mapeditor.svg + ${CMAKE_SOURCE_DIR}/resources/16-map.png + ${CMAKE_SOURCE_DIR}/resources/32-map.png + ${CMAKE_SOURCE_DIR}/resources/48-map.png + ${CMAKE_SOURCE_DIR}/resources/256-map.png +) + if (WIN32) install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR}) else() diff --git a/mdlviewer/CMakeLists.txt b/mdlviewer/CMakeLists.txt index eb9be21..3b916a1 100644 --- a/mdlviewer/CMakeLists.txt +++ b/mdlviewer/CMakeLists.txt @@ -23,6 +23,15 @@ target_link_libraries(novus-mdlviewer install(TARGETS novus-mdlviewer ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS}) +ecm_add_app_icon(novus-mdlviewer + ICONS + zone.xiv.mdlviewer.svg + ${CMAKE_SOURCE_DIR}/resources/16-model.png + ${CMAKE_SOURCE_DIR}/resources/32-model.png + ${CMAKE_SOURCE_DIR}/resources/48-model.png + ${CMAKE_SOURCE_DIR}/resources/256-model.png +) + if (WIN32) install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR}) else() diff --git a/resources/16-armoury.png b/resources/16-armoury.png new file mode 100644 index 0000000..7bee1c8 Binary files /dev/null and b/resources/16-armoury.png differ diff --git a/resources/16-data.png b/resources/16-data.png new file mode 100644 index 0000000..78696ec Binary files /dev/null and b/resources/16-data.png differ diff --git a/resources/16-excel.png b/resources/16-excel.png new file mode 100644 index 0000000..19ac0ca Binary files /dev/null and b/resources/16-excel.png differ diff --git a/resources/16-launcher.png b/resources/16-launcher.png new file mode 100644 index 0000000..abd7ee8 Binary files /dev/null and b/resources/16-launcher.png differ diff --git a/resources/16-map.png b/resources/16-map.png new file mode 100644 index 0000000..e866d2b Binary files /dev/null and b/resources/16-map.png differ diff --git a/resources/16-model.png b/resources/16-model.png new file mode 100644 index 0000000..ec08e68 Binary files /dev/null and b/resources/16-model.png differ diff --git a/resources/256-armoury.png b/resources/256-armoury.png new file mode 100644 index 0000000..abf6b8d Binary files /dev/null and b/resources/256-armoury.png differ diff --git a/resources/256-data.png b/resources/256-data.png new file mode 100644 index 0000000..f478456 Binary files /dev/null and b/resources/256-data.png differ diff --git a/resources/256-excel.png b/resources/256-excel.png new file mode 100644 index 0000000..36a4cd9 Binary files /dev/null and b/resources/256-excel.png differ diff --git a/resources/256-launcher.png b/resources/256-launcher.png new file mode 100644 index 0000000..a52df4a Binary files /dev/null and b/resources/256-launcher.png differ diff --git a/resources/256-map.png b/resources/256-map.png new file mode 100644 index 0000000..b14e94a Binary files /dev/null and b/resources/256-map.png differ diff --git a/resources/256-model.png b/resources/256-model.png new file mode 100644 index 0000000..e499802 Binary files /dev/null and b/resources/256-model.png differ diff --git a/resources/32-armoury.png b/resources/32-armoury.png new file mode 100644 index 0000000..935bb93 Binary files /dev/null and b/resources/32-armoury.png differ diff --git a/resources/32-data.png b/resources/32-data.png new file mode 100644 index 0000000..63689f3 Binary files /dev/null and b/resources/32-data.png differ diff --git a/resources/32-excel.png b/resources/32-excel.png new file mode 100644 index 0000000..c575166 Binary files /dev/null and b/resources/32-excel.png differ diff --git a/resources/32-launcher.png b/resources/32-launcher.png new file mode 100644 index 0000000..726020e Binary files /dev/null and b/resources/32-launcher.png differ diff --git a/resources/32-map.png b/resources/32-map.png new file mode 100644 index 0000000..4ec043b Binary files /dev/null and b/resources/32-map.png differ diff --git a/resources/32-model.png b/resources/32-model.png new file mode 100644 index 0000000..1e72f00 Binary files /dev/null and b/resources/32-model.png differ diff --git a/resources/48-armoury.png b/resources/48-armoury.png new file mode 100644 index 0000000..5ce8f81 Binary files /dev/null and b/resources/48-armoury.png differ diff --git a/resources/48-data.png b/resources/48-data.png new file mode 100644 index 0000000..0cac24f Binary files /dev/null and b/resources/48-data.png differ diff --git a/resources/48-excel.png b/resources/48-excel.png new file mode 100644 index 0000000..9fe14cc Binary files /dev/null and b/resources/48-excel.png differ diff --git a/resources/48-launcher.png b/resources/48-launcher.png new file mode 100644 index 0000000..9b60e57 Binary files /dev/null and b/resources/48-launcher.png differ diff --git a/resources/48-map.png b/resources/48-map.png new file mode 100644 index 0000000..a418ccc Binary files /dev/null and b/resources/48-map.png differ diff --git a/resources/48-model.png b/resources/48-model.png new file mode 100644 index 0000000..c5b4a1e Binary files /dev/null and b/resources/48-model.png differ diff --git a/sagasu/CMakeLists.txt b/sagasu/CMakeLists.txt index 2c56949..c118b93 100644 --- a/sagasu/CMakeLists.txt +++ b/sagasu/CMakeLists.txt @@ -50,6 +50,15 @@ target_link_libraries(novus-sagasu install(TARGETS novus-sagasu ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS}) +ecm_add_app_icon(novus-sagasu + ICONS + zone.xiv.sagasu.svg + ${CMAKE_SOURCE_DIR}/resources/16-data.png + ${CMAKE_SOURCE_DIR}/resources/32-data.png + ${CMAKE_SOURCE_DIR}/resources/48-data.png + ${CMAKE_SOURCE_DIR}/resources/256-data.png +) + if (WIN32) install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR}) else()