1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-22 20:17:46 +00:00
novus/mdlviewer/CMakeLists.txt
Joshua Goins ada43f9937 Set better executables on Windows
We don't have to worry about clogging up a central bin dir on Windows,
so we can choose more generic names for the tools.
2024-04-25 19:17:33 -04:00

44 lines
No EOL
1.3 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(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)
set_target_properties(novus-mdlviewer PROPERTIES
WIN32_EXECUTABLE TRUE
OUTPUT_NAME "ModelViewer")
install(FILES $<TARGET_RUNTIME_DLLS:novus-mdlviewer> DESTINATION ${CMAKE_INSTALL_BINDIR})
else()
install(FILES zone.xiv.mdlviewer.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES zone.xiv.mdlviewer.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
endif()