1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-27 22:27:46 +00:00
novus/sagasu/CMakeLists.txt
Joshua Goins 51ea3c3920 Create reusable material part
This takes the existing properties widget in the new material editor and
makes it reusable across multiple applications. It's now added to the
Armoury which shows the gear's used materials. It's also added to the
Data Explorer which now supports viewing material files.

I fixed the render viewport crashing when hiding it again, and made it
even more resilient.
2024-04-27 13:45:15 -04:00

72 lines
No EOL
2.1 KiB
CMake

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
add_library(novus-sagasu-static STATIC)
target_sources(novus-sagasu-static
PRIVATE
include/hashdatabase.h
src/hashdatabase.cpp)
target_link_libraries(novus-sagasu-static
PUBLIC
Novus::Common
Physis::Physis
Qt6::Core
Qt6::Sql)
target_include_directories(novus-sagasu-static PRIVATE include)
add_executable(novus-sagasu-indexer)
target_sources(novus-sagasu-indexer PRIVATE src/indexer.cpp)
target_link_libraries(novus-sagasu-indexer
PRIVATE
novus-sagasu-static
Qt6::HttpServer)
target_include_directories(novus-sagasu-indexer PRIVATE include)
add_executable(novus-sagasu)
target_sources(novus-sagasu
PRIVATE
src/main.cpp
src/mainwindow.cpp
src/filetreewindow.cpp
src/filepropertieswindow.cpp
src/filetreemodel.cpp)
target_include_directories(novus-sagasu PRIVATE include)
target_link_libraries(novus-sagasu
PRIVATE
KF6::Archive
novus-sagasu-static
Novus::SklbPart
Novus::CmpPart
Novus::ShpkPart
Novus::HexPart
Novus::ExlPart
Novus::MdlPart
Novus::ExdPart
Novus::TexPart
Novus::DicPart
Novus::MtrlPart
Physis::Logger
Qt6::Concurrent
Qt6::Network)
install(TARGETS novus-sagasu ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
ecm_add_app_icon(novus-sagasu
ICONS
zone.xiv.sagasu.svg
${CMAKE_SOURCE_DIR}/resources/16-data.png
${CMAKE_SOURCE_DIR}/resources/32-data.png
${CMAKE_SOURCE_DIR}/resources/48-data.png
${CMAKE_SOURCE_DIR}/resources/256-data.png
)
if (WIN32)
set_target_properties(novus-sagasu PROPERTIES
WIN32_EXECUTABLE TRUE
OUTPUT_NAME "DataExplorer")
install(FILES $<TARGET_RUNTIME_DLLS:novus-sagasu> DESTINATION ${CMAKE_INSTALL_BINDIR})
else()
install(FILES zone.xiv.sagasu.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES zone.xiv.sagasu.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
endif()