1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 12:37:45 +00:00
novus/mdlviewer/CMakeLists.txt
Joshua Goins 2844231996
Enable Windows and Linux packaging
The Windows version isn't super working yet, but this is a good step forward
2024-04-25 02:31:40 +00:00

37 lines
No EOL
1.1 KiB
CMake

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
add_executable(novus-mdlviewer)
target_sources(novus-mdlviewer
PRIVATE
include/mainwindow.h
src/main.cpp
src/mainwindow.cpp)
target_include_directories(novus-mdlviewer
PUBLIC
include)
target_link_libraries(novus-mdlviewer
PRIVATE
Novus::MdlPart
Novus::Common
Physis::Physis
Physis::Logger
KF6::XmlGui
Qt6::Core
Qt6::Widgets)
install(FILES zone.xiv.mdlviewer.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES zone.xiv.mdlviewer.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
install(TARGETS novus-mdlviewer ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
qt_generate_deploy_app_script(
TARGET novus-mdlviewer
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})
if (WIN32)
install(FILES $<TARGET_RUNTIME_DLLS:novus-mdlviewer> DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()