60 lines
1.7 KiB
CMake
60 lines
1.7 KiB
CMake
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(danbooru_client_SRCS
|
|
danbooruconnectwidget.cpp
|
|
danboorusearchwidget.cpp
|
|
model/danboorupostdelegate.cpp
|
|
model/danboorupostmodel.cpp
|
|
model/danboorupoolmodel.cpp
|
|
generalpage.cpp
|
|
blacklistpage.cpp
|
|
mainwindow.cpp
|
|
danbooru_client.cpp
|
|
)
|
|
|
|
add_subdirectory(libdanbooru)
|
|
|
|
include_directories(
|
|
model)
|
|
|
|
ki18n_wrap_ui(danbooru_client_SRCS
|
|
ui/generalpage.ui
|
|
ui/blacklistpage.ui
|
|
ui/danbooruconnectwidget.ui
|
|
ui/searchwidget.ui)
|
|
|
|
kconfig_add_kcfg_files(danbooru_client_SRCS danboorusettings.kcfgc)
|
|
|
|
add_executable(danbooru_client
|
|
${danbooru_client_SRCS}
|
|
)
|
|
|
|
target_link_libraries(danbooru_client PUBLIC
|
|
Qt5::Widgets
|
|
Qt5::Core
|
|
Qt5::Quick
|
|
Qt5::Qml
|
|
Qt5::QuickWidgets
|
|
KF5::CoreAddons
|
|
# KF5::GuiAddons
|
|
KF5::IconThemes
|
|
KF5::I18n
|
|
KF5::TextWidgets
|
|
KF5::XmlGui
|
|
KF5::ConfigWidgets
|
|
KF5::KIOCore
|
|
KF5::Wallet
|
|
KF5::KDELibs4Support
|
|
KF5::Declarative
|
|
danbooru
|
|
)
|
|
|
|
install(TARGETS danbooru_client ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
########### install files ###############
|
|
|
|
install( PROGRAMS danbooru_client.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|
|
install( FILES danbooru_client.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
|
|
install( FILES danbooru_clientui.rc DESTINATION ${DATA_INSTALL_DIR}/danbooru_client )
|
|
|
|
|