-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
41 lines (35 loc) · 1.17 KB
/
Copy pathCMakeLists.txt
File metadata and controls
41 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# SPDX-FileCopyrightText: 2026 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
add_executable(novus-patchdiff)
set_common_properties(novus-patchdiff)
target_sources(novus-patchdiff
PRIVATE
include/mainwindow.h
include/difftreewidget.h
include/difftreemodel.h
src/difftreemodel.cpp
src/difftreewidget.cpp
src/main.cpp
src/mainwindow.cpp)
target_include_directories(novus-patchdiff
PUBLIC
include)
target_link_libraries(novus-patchdiff
PRIVATE
Novus::Common
Novus::HexPart
Physis::Physis
KF6::I18n
Qt6::Core
Qt6::Widgets
KF6::WidgetsAddons)
install(TARGETS novus-patchdiff ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES patchdiff.rc DESTINATION ${KDE_INSTALL_KXMLGUIDIR}/novus)
if (WIN32)
set_target_properties(novus-patchdiff PROPERTIES
WIN32_EXECUTABLE TRUE
OUTPUT_NAME "PatchDiff")
install(FILES $<TARGET_RUNTIME_DLLS:novus-patchdiff> DESTINATION ${CMAKE_INSTALL_BINDIR})
else()
install(FILES zone.xiv.novus.patchdiff.desktop DESTINATION ${KDE_INSTALL_APPDIR})
endif()