2024-02-02 14:29:48 -05:00
|
|
|
# SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
add_executable(novus-mapeditor)
|
|
|
|
target_sources(novus-mapeditor
|
|
|
|
PRIVATE
|
|
|
|
include/mainwindow.h
|
|
|
|
include/maplistwidget.h
|
|
|
|
include/mapview.h
|
|
|
|
|
|
|
|
src/main.cpp
|
|
|
|
src/mainwindow.cpp
|
|
|
|
src/maplistwidget.cpp
|
|
|
|
src/mapview.cpp)
|
|
|
|
target_include_directories(novus-mapeditor
|
|
|
|
PUBLIC
|
|
|
|
include)
|
|
|
|
target_link_libraries(novus-mapeditor
|
|
|
|
PRIVATE
|
|
|
|
Novus::Common
|
|
|
|
Novus::MdlPart
|
|
|
|
Physis::Physis
|
|
|
|
Physis::Logger
|
|
|
|
Qt6::Core
|
|
|
|
Qt6::Widgets)
|
|
|
|
|
|
|
|
install(TARGETS novus-mapeditor ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
|
2024-04-24 22:31:40 -04:00
|
|
|
|
2024-04-25 19:11:00 -04:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2024-04-24 22:31:40 -04:00
|
|
|
if (WIN32)
|
2024-04-25 19:17:33 -04:00
|
|
|
set_target_properties(novus-mapeditor PROPERTIES
|
|
|
|
WIN32_EXECUTABLE TRUE
|
|
|
|
OUTPUT_NAME "MapEditor")
|
|
|
|
|
2024-04-24 22:31:40 -04:00
|
|
|
install(FILES $<TARGET_RUNTIME_DLLS:novus-mapeditor> DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2024-04-25 22:47:16 +00:00
|
|
|
else()
|
|
|
|
install(FILES zone.xiv.mapeditor.desktop DESTINATION ${KDE_INSTALL_APPDIR})
|
|
|
|
install(FILES zone.xiv.mapeditor.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
|
2024-04-24 22:31:40 -04:00
|
|
|
endif()
|