mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-24 04:57:45 +00:00
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.
71 lines
No EOL
2.1 KiB
CMake
71 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
|
|
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() |