2022-04-07 17:23:41 +03:00
|
|
|
project(kupdatenotifier)
|
|
|
|
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2023-08-20 13:13:01 +03:00
|
|
|
include(FeatureSummary)
|
|
|
|
|
|
|
|
find_package(KDELibs4 4.23.0 REQUIRED)
|
|
|
|
|
2022-04-07 17:23:41 +03:00
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(kupdatenotifier_SRCS
|
|
|
|
main.cpp
|
|
|
|
kupdatenotifier.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(kupdatenotifier ${kupdatenotifier_SRCS})
|
|
|
|
|
2023-08-20 13:13:01 +03:00
|
|
|
target_link_libraries(kupdatenotifier KDE4::kdeui)
|
2022-04-07 17:23:41 +03:00
|
|
|
|
2023-08-20 13:13:01 +03:00
|
|
|
install(
|
|
|
|
TARGETS kupdatenotifier
|
|
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
|
|
)
|
2022-04-07 17:23:41 +03:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
install(
|
|
|
|
PROGRAMS kupdatenotifier.desktop
|
|
|
|
DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR}
|
|
|
|
)
|