mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
51 lines
1 KiB
CMake
51 lines
1 KiB
CMake
project(knotify)
|
|
|
|
include_directories(
|
|
${KDE4_KIO_INCLUDES}
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
if(ENABLE_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
########### next target ###############
|
|
|
|
set(knotifyconfig_LIB_SRCS
|
|
knotifyconfigactionswidget.cpp
|
|
knotifyconfigelement.cpp
|
|
knotifyeventlist.cpp
|
|
knotifyconfigwidget.cpp
|
|
)
|
|
|
|
add_library(knotifyconfig SHARED ${knotifyconfig_LIB_SRCS})
|
|
|
|
# Needs KIO for KUrlRequester
|
|
target_link_libraries(knotifyconfig PUBLIC
|
|
${QT_QTGUI_LIBRARY}
|
|
${QT_QTDBUS_LIBRARY}
|
|
kdecore
|
|
kio
|
|
)
|
|
|
|
set_target_properties(knotifyconfig PROPERTIES
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
)
|
|
install(
|
|
TARGETS knotifyconfig
|
|
EXPORT kdelibsTargets
|
|
DESTINATION ${KDE4_LIB_INSTALL_DIR}
|
|
)
|
|
|
|
########### install files ###############
|
|
|
|
generate_export_header(knotifyconfig)
|
|
|
|
install(
|
|
FILES
|
|
${CMAKE_CURRENT_BINARY_DIR}/knotifyconfig_export.h
|
|
knotifyconfigwidget.h
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
|
|
)
|