2014-11-13 01:04:59 +02:00
|
|
|
project(knotify)
|
|
|
|
|
2016-03-14 21:37:05 +00:00
|
|
|
include_directories(
|
|
|
|
${KDE4_KIO_INCLUDES}
|
2020-02-01 22:53:13 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2016-03-14 21:37:05 +00:00
|
|
|
)
|
2015-09-01 01:05:33 +03:00
|
|
|
|
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(knotifyconfig_LIB_SRCS
|
|
|
|
knotifyconfigactionswidget.cpp
|
|
|
|
knotifyconfigelement.cpp
|
|
|
|
knotifyeventlist.cpp
|
|
|
|
knotifyconfigwidget.cpp
|
|
|
|
)
|
|
|
|
|
2023-06-10 23:05:53 +03:00
|
|
|
add_library(knotifyconfig SHARED ${knotifyconfig_LIB_SRCS})
|
2015-09-01 01:05:33 +03:00
|
|
|
|
|
|
|
# Needs KIO for KUrlRequester
|
2020-02-09 21:45:50 +00:00
|
|
|
target_link_libraries(knotifyconfig PUBLIC
|
2015-11-02 19:10:29 +02:00
|
|
|
${QT_QTGUI_LIBRARY}
|
2021-07-01 13:05:48 +03:00
|
|
|
${QT_QTDBUS_LIBRARY}
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
|
|
|
kio
|
2015-11-02 19:10:29 +02:00
|
|
|
)
|
2015-09-01 01:05:33 +03:00
|
|
|
|
|
|
|
set_target_properties(knotifyconfig PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2015-11-02 03:38:51 +02:00
|
|
|
install(
|
|
|
|
TARGETS knotifyconfig
|
2023-06-17 23:57:38 +03:00
|
|
|
EXPORT kdelibsTargets
|
2023-06-17 09:11:52 +03:00
|
|
|
DESTINATION ${KDE4_LIB_INSTALL_DIR}
|
2015-11-02 03:38:51 +02:00
|
|
|
)
|
2015-09-01 01:05:33 +03:00
|
|
|
|
|
|
|
########### install files ###############
|
2015-11-02 19:10:29 +02:00
|
|
|
|
2016-04-27 18:43:11 +00:00
|
|
|
generate_export_header(knotifyconfig)
|
|
|
|
|
2015-11-02 03:38:51 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2016-04-27 18:43:11 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/knotifyconfig_export.h
|
2015-11-02 03:38:51 +02:00
|
|
|
knotifyconfigwidget.h
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
|
2015-11-02 03:38:51 +02:00
|
|
|
)
|