1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-26 05:37:46 +00:00
novus/armoury/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

58 lines
No EOL
1.6 KiB
CMake

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
add_executable(novus-armoury)
target_sources(novus-armoury
PRIVATE
include/boneeditor.h
include/cmpeditor.h
include/fullmodelviewer.h
include/gearlistmodel.h
include/gearlistwidget.h
include/gearview.h
include/mainwindow.h
include/materialview.h
include/metadataview.h
include/penumbraapi.h
include/settingswindow.h
include/singlegearview.h
src/boneeditor.cpp
src/cmpeditor.cpp
src/fullmodelviewer.cpp
src/gearlistmodel.cpp
src/gearlistwidget.cpp
src/gearview.cpp
src/main.cpp
src/mainwindow.cpp
src/materialview.cpp
src/metadataview.cpp
src/penumbraapi.cpp
src/settingswindow.cpp
src/singlegearview.cpp)
target_include_directories(novus-armoury
PUBLIC
include
PRIVATE
${CMAKE_BINARY_DIR})
target_link_libraries(novus-armoury
PUBLIC
Novus::Common
Novus::MdlPart
Novus::CmpPart
Novus::SklbPart
Physis::Physis
Physis::Logger
imgui
Qt6::Core
Qt6::Widgets
Qt6::Concurrent
Qt6::Network)
install(FILES zone.xiv.armoury.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES zone.xiv.armoury.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
install(TARGETS novus-armoury ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
if (WIN32)
install(FILES $<TARGET_RUNTIME_DLLS:novus-armoury> DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()