2023-08-31 14:21:19 +02:00
|
|
|
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2023-10-10 18:31:15 -04:00
|
|
|
add_executable(novus-launcher)
|
2023-12-10 06:51:33 -05:00
|
|
|
target_sources(novus-launcher
|
|
|
|
PRIVATE
|
|
|
|
include/mainwindow.h
|
|
|
|
|
2023-08-31 14:18:50 +02:00
|
|
|
src/main.cpp
|
|
|
|
src/mainwindow.cpp)
|
2023-12-09 21:51:57 -05:00
|
|
|
target_link_libraries(novus-launcher
|
|
|
|
PRIVATE
|
|
|
|
Novus::Common
|
|
|
|
Physis::Physis
|
|
|
|
KF6::ConfigCore
|
|
|
|
Qt6::Widgets)
|
2023-10-10 17:58:43 -04:00
|
|
|
target_include_directories(novus-launcher PUBLIC include)
|
2023-12-31 12:11:42 -05:00
|
|
|
|
2024-04-24 22:31:40 -04:00
|
|
|
install(TARGETS novus-launcher ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
|
|
|
|
if (WIN32)
|
2024-04-25 19:11:00 -04:00
|
|
|
set_target_properties(
|
|
|
|
novus-launcher
|
|
|
|
PROPERTIES WIN32_EXECUTABLE TRUE
|
|
|
|
)
|
|
|
|
|
2024-04-24 22:31:40 -04:00
|
|
|
install(FILES $<TARGET_RUNTIME_DLLS:novus-launcher> DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2024-04-25 22:47:16 +00:00
|
|
|
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()
|
|
|
|
|
2024-04-25 19:11:00 -04:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2024-04-25 22:47:16 +00:00
|
|
|
# We only need to call deploy on one executable
|
|
|
|
qt_generate_deploy_app_script(
|
|
|
|
TARGET novus-launcher
|
|
|
|
OUTPUT_SCRIPT deploy_script
|
|
|
|
NO_UNSUPPORTED_PLATFORM_ERROR
|
|
|
|
)
|
|
|
|
install(SCRIPT ${deploy_script})
|