2014-11-30 18:17:57 +00:00
|
|
|
project(ktimer)
|
|
|
|
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2020-02-10 21:58:43 +00:00
|
|
|
find_package(KDE4 4.19.0 REQUIRED)
|
2016-04-06 12:26:19 +00:00
|
|
|
include(KDE4Defaults)
|
2014-11-30 18:17:57 +00:00
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
endif()
|
|
|
|
|
2015-09-02 02:13:50 +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})
|
2014-11-30 18:17:57 +00:00
|
|
|
|
|
|
|
target_link_libraries(ktimer ${KDE4_KIO_LIBS})
|
|
|
|
|
|
|
|
install(TARGETS ktimer ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2020-02-10 23:43:40 +00: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})
|