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

« back to all changes in this revision

Viewing changes to akonadi/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:
8
8
endif()
9
9
 
10
10
if (KDE4_BUILD_TESTS)
11
 
   # only with this macro the AKONADI_TESTS_EXPORT macro will do something
12
 
   add_definitions(-DCOMPILING_TESTS)
13
11
add_subdirectory( tests )
14
12
endif()
15
13
 
27
25
 
28
26
configure_file(config-akonadi.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-akonadi.h)
29
27
 
 
28
include_directories(
 
29
  ${CMAKE_CURRENT_SOURCE_DIR}
 
30
  ${CMAKE_CURRENT_BINARY_DIR}
 
31
)
30
32
add_subdirectory( kabc )
31
33
add_subdirectory( kcal )
32
34
add_subdirectory( kmime )
34
36
add_subdirectory( calendar )
35
37
add_subdirectory( notes )
36
38
add_subdirectory( socialutils )
 
39
add_subdirectory( xml )
37
40
 
38
41
include_directories(
39
 
  ${CMAKE_CURRENT_SOURCE_DIR}
40
 
  ${CMAKE_CURRENT_BINARY_DIR}
41
42
  ${QT_QTDBUS_INCLUDE_DIR}
42
43
  ${Boost_INCLUDE_DIR}
43
44
  ${KDE4_INCLUDE_DIR}
44
45
  ${QJSON_INCLUDE_DIR}
45
46
  ${AKONADI_INCLUDE_DIR}
 
47
  ${CMAKE_CURRENT_BINARY_DIR}/../kmime
46
48
  ${AKONADI_INCLUDE_DIR}/akonadi/private
47
49
)
48
50
 
119
121
  exception.cpp
120
122
  favoritecollectionsmodel.cpp
121
123
  firstrun.cpp
 
124
  gid/gidextractor.cpp
122
125
  indexpolicyattribute.cpp
123
126
  item.cpp
124
127
  itemcreatejob.cpp
142
145
  mimetypechecker.cpp
143
146
  monitor.cpp
144
147
  monitor_p.cpp
 
148
  notificationsource.cpp
145
149
  partfetcher.cpp
146
150
  pastehelper.cpp
147
151
  persistentsearchattribute.cpp
249
253
  )
250
254
endif()
251
255
 
252
 
kde4_add_library( akonadi-kde ${LIBRARY_TYPE} ${akonadikde_LIB_SRC} )
 
256
add_definitions(
 
257
  -DAKONADI_DEPRECATED=
 
258
)
 
259
# This one won't be needed when CMake 2.8.13 is depended on.
 
260
add_definitions(
 
261
  -DAKONADI_DEPRECATED_EXPORT=AKONADI_EXPORT
 
262
)
 
263
 
 
264
add_library( akonadi-kde ${LIBRARY_TYPE} ${akonadikde_LIB_SRC} )
 
265
if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12)
 
266
  set_property(TARGET akonadi-kde PROPERTY DEFINE_SYMBOL akonadi_kde)
 
267
endif()
 
268
generate_export_header(akonadi-kde BASE_NAME akonadi)
 
269
 
 
270
if (KDE4_BUILD_TESTS)
 
271
   set(AKONADI_TESTS_EXPORT AKONADI_EXPORT)
 
272
endif()
 
273
configure_file(akonadiprivate_export.h.in "${CMAKE_CURRENT_BINARY_DIR}/akonadiprivate_export.h")
 
274
 
 
275
if (KDE4_BUILD_TESTS)
 
276
   set(AKONADI_TESTS_EXPORT AKONADI_EXPORT)
 
277
endif()
 
278
configure_file(akonadiprivate_export.h.in
 
279
  "${CMAKE_CURRENT_BINARY_DIR}/akonadiprivate_export.h"
 
280
)
253
281
 
254
282
target_link_libraries( akonadi-kde ${QT_QTNETWORK_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTSQL_LIBRARY} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${KDE4_SOLID_LIBS} ${AKONADI_COMMON_LIBRARIES} )
255
283
set( AKONADI_KDE_DEPS ${KDE4_KDEUI_LIBS} ${QT_QTDBUS_LIBRARY} ${QT_QTCORE_LIBRARY} )
266
294
########### install files ###############
267
295
 
268
296
install( FILES
269
 
  akonadi_export.h
 
297
  ${CMAKE_CURRENT_BINARY_DIR}/akonadi_export.h
270
298
  agentactionmanager.h
271
299
  agentbase.h
272
300
  agentfactory.h
301
329
  collectionmovejob.h
302
330
  collectionpropertiesdialog.h
303
331
  collectionpropertiespage.h
 
332
  collectionpathresolver_p.h
304
333
  collectionquotaattribute.h
305
334
  collectionrequester.h
306
335
  collectionstatisticsdelegate.h
327
356
  etmviewstatesaver.h
328
357
  exception.h
329
358
  favoritecollectionsmodel.h
 
359
  gid/gidextractorinterface.h
330
360
  indexpolicyattribute.h
331
361
  item.h
332
362
  itemcreatejob.h
394
424
)
395
425
endif()
396
426
 
 
427
set(module_install_dir ${DATA_INSTALL_DIR}/cmake/modules )
 
428
install( FILES
 
429
  AkonadiMacros.cmake
 
430
  DESTINATION ${module_install_dir}
 
431
)
 
432
 
397
433
#Laurent: kdelibs commits 9f575dd and d62c854 are needed to avoid build errors with the -DQT_NO_CAST_*_ASCII flags
398
434
if((NOT KDE_VERSION VERSION_LESS 4.10.4) AND QT_QTDESIGNER_FOUND)
399
435
  message(STATUS "Building Akonadi widgets")