~ubuntu-branches/ubuntu/trusty/kdepimlibs/trusty

« back to all changes in this revision

Viewing changes to kalarmcal/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Rohan Garg, Rohan Garg, Philip Muškovac
  • Date: 2013-11-23 17:36:44 UTC
  • mfrom: (1.1.102)
  • Revision ID: package-import@ubuntu.com-20131123173644-p5ow94192ezsny8g
Tags: 4:4.11.80-0ubuntu1
[ Rohan Garg ]
* New upstream beta release
  - Bump akonadi requirement to 1.10.45
  - Update install files
  - Update symbols

[ Philip Muškovac ]
* kdepimlibs-dev/-dbg breaks/replaces kdepim-runtime/-dbg (<< 4:4.11.80)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
set(LIB_SOVERSION 2)
7
7
 
8
8
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5955)
 
9
add_definitions( -DQT_NO_CAST_FROM_ASCII )
 
10
add_definitions( -DQT_NO_CAST_TO_ASCII )
 
11
 
9
12
 
10
13
############### Build Options ###############
11
14
 
15
18
set(USE_KRESOURCES false)
16
19
if(KALARM_USE_KRESOURCES AND NOT KDEPIM_NO_KRESOURCES)
17
20
    set(USE_KRESOURCES true)
18
 
    add_definitions(-DWANT_DEPRECATED_KCAL_API)
19
 
    add_definitions(-DWANT_DEPRECATED_KRESOURCE_API)
 
21
    add_definitions(
 
22
      -DKRESOURCES_DEPRECATED=
 
23
      -DKCAL_DEPRECATED=
 
24
    )
 
25
    # This one won't be needed when CMake 2.8.13 is depended on.
 
26
    add_definitions(
 
27
      -DKRESOURCES_DEPRECATED_EXPORT=KRESOURCES_EXPORT
 
28
      -DKCAL_DEPRECATED_EXPORT=KCAL_EXPORT
 
29
    )
20
30
endif()
21
31
 
22
32
########### next target ###############
41
51
       )
42
52
endif()
43
53
 
 
54
include_directories(
 
55
  ${CMAKE_BINARY_DIR}/kcal
 
56
  ${CMAKE_BINARY_DIR}/kcalcore
 
57
  ${CMAKE_BINARY_DIR}/akonadi
 
58
  ${CMAKE_BINARY_DIR}/kholidays
 
59
  ${CMAKE_BINARY_DIR}/kpimidentities
 
60
)
 
61
add_library(kalarmcal ${LIBRARY_TYPE} ${kalarmcal_LIB_SRCS})
 
62
generate_export_header(kalarmcal)
44
63
if(USE_KRESOURCES)
45
 
    set(KALARMCAL_USE_KRESOURCES "// This library was built to use KResources.\n// It must be rebuilt in order to use Akonadi.\n#define KALARMCAL_USE_KRESOURCES")
 
64
    file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/kalarmcal_export.h" "\n// This library was built to use KResources.\n// It must be rebuilt in order to use Akonadi.\n#define KALARMCAL_USE_KRESOURCES\n")
46
65
else()
47
 
    set(KALARMCAL_USE_KRESOURCES "// This library was built to use Akonadi.\n// It must be rebuilt in order to use KResources.\n#ifdef KALARMCAL_USE_KRESOURCES\n#undef KALARMCAL_USE_KRESOURCES\n#endif")
 
66
    file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/kalarmcal_export.h" "\n// This library was built to use Akonadi.\n// It must be rebuilt in order to use KResources.\n#ifdef KALARMCAL_USE_KRESOURCES\n#undef KALARMCAL_USE_KRESOURCES\n#endif\n")
48
67
endif()
49
68
 
50
 
# NOTE: kalarmcal_export.h is only generated when cmake is run.
51
 
#       If it is deleted, 'make' will not regenerate it.
52
 
configure_file(kalarmcal_export.h.in ${CMAKE_CURRENT_BINARY_DIR}/kalarmcal_export.h)
53
 
 
54
 
kde4_add_library(kalarmcal ${LIBRARY_TYPE} ${kalarmcal_LIB_SRCS})
55
 
 
56
69
if(USE_KRESOURCES)
57
70
    target_link_libraries(kalarmcal
58
71
                          kcal