CMakeLists.txt 1.38 KB
Newer Older
1
2
3
4
5
6
7
8

########### Build ###############

include_directories( 
	${CMAKE_CURRENT_SOURCE_DIR}/crontablib
	${CMAKE_CURRENT_SOURCE_DIR} 
)

9
########## KCM Module ###############
10

Laurent Montel's avatar
Laurent Montel committed
11
12
13
14
15
16
17
18
19
20
21
22
set(kcron_crontablib_SRCS
   crontablib/cthost.cpp
   crontablib/ctcron.cpp
   crontablib/ctmonth.cpp
   crontablib/ctminute.cpp
   crontablib/cthour.cpp
   crontablib/ctdom.cpp
   crontablib/ctdow.cpp
   crontablib/cttask.cpp
   crontablib/ctunit.cpp
   crontablib/ctvariable.cpp
   crontablib/ctGlobalCron.cpp
Nicolas Ternisien's avatar
Nicolas Ternisien committed
23
24
25
26
   crontablib/ctSystemCron.cpp
   crontablib/ctInitializationError.cpp
   crontablib/ctSaveStatus.cpp
   crontablib/ctHelper.cpp
Laurent Montel's avatar
Laurent Montel committed
27
28
)

29
30
ecm_qt_declare_logging_category(kcron_crontablib_SRCS HEADER kcm_cron_debug.h IDENTIFIER KCM_CRON_LOG CATEGORY_NAME org.kde.kcm.cron)

Laurent Montel's avatar
Laurent Montel committed
31
32
33

set(kcm_cron_SRCS 
   ${kcron_crontablib_SRCS}
Nicolas Ternisien's avatar
Nicolas Ternisien committed
34
35
36
37
38
39
40
41
42
43
44
45
46
   genericListWidget.cpp
    
   tasksWidget.cpp
   taskWidget.cpp 

   variablesWidget.cpp
   variableWidget.cpp 
 
   taskEditorDialog.cpp 
   variableEditorDialog.cpp

   crontabWidget.cpp 

47
   kcronHelper.cpp
Nicolas Ternisien's avatar
Nicolas Ternisien committed
48
    
Nicolas Ternisien's avatar
   
Nicolas Ternisien committed
49
   crontabPrinter.cpp 
Nicolas Ternisien's avatar
Nicolas Ternisien committed
50
   crontabPrinterWidget.cpp 
51

52
53
54
   kcmCron.cpp 
)

Laurent Montel's avatar
Laurent Montel committed
55
add_library(kcm_cron MODULE ${kcm_cron_SRCS})
56
57

target_link_libraries(kcm_cron 
58
    Qt5::PrintSupport
Michael Palimaka's avatar
Michael Palimaka committed
59
    KF5::ConfigWidgets
60
61
62
    KF5::I18n
    KF5::IconThemes
    KF5::KIOWidgets
63
64
)

65
install(TARGETS  kcm_cron  DESTINATION ${PLUGIN_INSTALL_DIR} )
66

Laurent Montel's avatar
Laurent Montel committed
67
install(FILES kcm_cron.desktop  DESTINATION  ${KDE_INSTALL_KSERVICES5DIR} )