1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-14 20:47:46 +00:00
novus/apps/mapeditor/CMakeLists.txt
Joshua Goins fc327ba8b5 Fix the object pass, start rendering a sphere
The sphere doesn't look correct (bad vertex stride) but that doesn't
matter. I need to expose the object's transform in libphysis next,
before we can start drawing.
2025-05-13 16:41:52 -04:00

56 lines
1.7 KiB
CMake

# 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
include/objectpass.h
include/objectlistwidget.h
include/appstate.h
include/objectlistmodel.h
include/primitives.h
src/main.cpp
src/mainwindow.cpp
src/maplistwidget.cpp
src/mapview.cpp
src/objectpass.cpp
src/objectlistwidget.cpp
src/appstate.cpp
src/objectlistmodel.cpp
src/primitives.cpp)
target_include_directories(novus-mapeditor
PUBLIC
include)
target_link_libraries(novus-mapeditor
PRIVATE
Novus::Common
Novus::MdlPart
Physis::Physis
Qt6::Core
Qt6::Widgets)
install(TARGETS novus-mapeditor ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES mapeditor.rc DESTINATION ${KDE_INSTALL_KXMLGUIDIR}/novus)
ecm_add_app_icon(novus-mapeditor
ICONS
${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
)
if (WIN32)
set_target_properties(novus-mapeditor PROPERTIES
WIN32_EXECUTABLE TRUE
OUTPUT_NAME "MapEditor")
install(FILES $<TARGET_RUNTIME_DLLS:novus-mapeditor> DESTINATION ${CMAKE_INSTALL_BINDIR})
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)
endif()