danbooru-client/src/CMakeLists.txt
Luca Beltrame 735d08f1a8 Add functionality to ensure that the basic system works
There are some things missing:

- Configuration
- Resuming downloads when the list doesn't scroll past the window
2015-02-08 23:53:57 +01:00

60 lines
1.7 KiB
CMake

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(danbooru_client_SRCS
danbooruconnectwidget.cpp
model/danboorupostdelegate.cpp
model/danboorupostmodel.cpp
# test.cpp
mainwindow.cpp
danbooru_client.cpp
testwidget.cpp
testpostdata.cpp
)
#ki18n_wrap_ui(danbooru_client_SRCS danbooru_clientview_base.ui prefs_base.ui)
#kconfig_add_kcfg_files(danbooru_client_SRCS settings.kcfgc )
add_subdirectory(libdanbooru)
include_directories(
model)
ki18n_wrap_ui(danbooru_client_SRCS
testwidget.ui
ui/danbooruclientview.ui
ui/danbooruconnectwidget.ui)
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 )