2014-11-30 18:17:57 +00:00
|
|
|
project(ktimer)
|
|
|
|
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2022-10-03 20:32:24 +03:00
|
|
|
include(FeatureSummary)
|
|
|
|
|
2023-06-17 18:39:16 +03:00
|
|
|
find_package(KDELibs4 4.23.0 REQUIRED)
|
|
|
|
|
2014-11-30 18:17:57 +00:00
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
endif()
|
|
|
|
|
2023-06-17 18:39:16 +03:00
|
|
|
set(ktimer_SRCS main.cpp ktimer.cpp prefwidget.ui)
|
2014-11-30 18:17:57 +00:00
|
|
|
|
2015-09-02 02:13:50 +03:00
|
|
|
add_executable(ktimer ${ktimer_SRCS})
|
2023-06-17 23:28:51 +03:00
|
|
|
target_link_libraries(ktimer KDE4::kio)
|
2014-11-30 18:17:57 +00:00
|
|
|
|
2023-06-17 18:39:16 +03:00
|
|
|
install(
|
|
|
|
TARGETS ktimer
|
|
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
|
|
)
|
2014-11-30 18:17:57 +00:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2023-06-17 18:39:16 +03:00
|
|
|
install(
|
|
|
|
PROGRAMS ktimer.desktop
|
|
|
|
DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR}
|
|
|
|
)
|
2014-11-30 18:17:57 +00:00
|
|
|
|
2020-02-10 23:43:40 +00:00
|
|
|
kde4_install_icons(${KDE4_ICON_INSTALL_DIR})
|
2022-10-03 20:32:24 +03:00
|
|
|
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2023-06-17 19:30:26 +03:00
|
|
|
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
2022-10-03 20:32:24 +03:00
|
|
|
endif()
|