~ubuntu-branches/debian/sid/calligraplan/sid

« back to all changes in this revision

Viewing changes to src/libs/kernel/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Pino Toscano
  • Date: 2018-02-01 18:20:19 UTC
  • Revision ID: package-import@ubuntu.com-20180201182019-1qo7qaim5wejm5k9
Tags: upstream-3.1.0
ImportĀ upstreamĀ versionĀ 3.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
if(BUILD_TESTING)
 
3
    add_subdirectory( tests )
 
4
endif()
 
5
 
 
6
include_directories(${PLANODF_INCLUDES}
 
7
                    ${PLANKUNDO2_INCLUDES})
 
8
 
 
9
 
 
10
########### KPlato kernel library ###############
 
11
 
 
12
set(kplatokernel_LIB_SRCS
 
13
    kptglobal.cpp
 
14
    kptlocale.cpp
 
15
    kpteffortcostmap.cpp
 
16
    kptdocuments.cpp
 
17
    kptaccount.cpp
 
18
    kptappointment.cpp
 
19
    kptnode.cpp
 
20
    kptproject.cpp
 
21
    kptrelation.cpp
 
22
    kptresource.cpp
 
23
    kpttask.cpp
 
24
    kptduration.cpp
 
25
    kptdatetime.cpp
 
26
    kptcalendar.cpp
 
27
    kptschedule.cpp
 
28
    kptwbsdefinition.cpp
 
29
    kptcommand.cpp
 
30
    kptpackage.cpp
 
31
    kptdebug.cpp
 
32
 
 
33
    kptschedulerplugin.cpp
 
34
 
 
35
    kptconfigbase.cpp
 
36
 
 
37
    KPlatoXmlLoaderBase.cpp
 
38
)
 
39
 
 
40
add_library(kplatokernel SHARED ${kplatokernel_LIB_SRCS})
 
41
generate_export_header(kplatokernel)
 
42
 
 
43
target_link_libraries(kplatokernel
 
44
    PUBLIC
 
45
        plankundo2
 
46
        planstore
 
47
        planwidgetutils
 
48
#         KF5::I18n
 
49
#         KF5::CoreAddons
 
50
)
 
51
if(KF5Holidays_FOUND)
 
52
    target_link_libraries(kplatokernel PUBLIC KF5::Holidays)
 
53
endif()
 
54
 
 
55
set_target_properties(kplatokernel PROPERTIES VERSION ${GENERIC_PLAN_LIB_VERSION} SOVERSION ${GENERIC_PLAN_LIB_SOVERSION} )
 
56
 
 
57
install(TARGETS kplatokernel ${INSTALL_TARGETS_DEFAULT_ARGS})
 
58
 
 
59
# TODO: with the new embedded JSON data for plugins there is no schema ATM to define extended properties
 
60
# plan_schedulerplugin.desktop