danbooru-client/src/CMakeLists.txt
Luca Beltrame cc100ad09a Specialized tag widget to display tags
Actually just a QListView but with support of the user's supplied
blacklist
2015-02-20 07:29:52 +01:00

61 lines
1.7 KiB
CMake

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(danbooru_client_SRCS
danbooruconnectwidget.cpp
danboorusearchwidget.cpp
danboorutagwidget.cpp
model/danboorupostmodel.cpp
model/danboorupoolmodel.cpp
model/danboorutagmodel.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 danboorusettings.kcfg DESTINATION ${KCFG_INSTALL_DIR})
install(FILES danbooru-clientui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/danbooru-client)