~ubuntu-branches/ubuntu/wily/qtorganizer5-eds/wily

« back to all changes in this revision

Viewing changes to organizer/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Ubuntu daily release, Renato Araujo Oliveira Filho
  • Date: 2014-06-10 20:59:33 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20140610205933-xof0e416jfq3u7ea
Tags: 0.1.1+14.10.20140610.1-0ubuntu1
[ Ubuntu daily release ]
* New rebuild forced

[ Renato Araujo Oliveira Filho ]
* Only destroy request data in the requestDestroyed function. (LP:
  #1328144)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
project(qorganizer-eds-src)
 
2
 
 
3
set(QORGANIZER_BACKEND qtorganizer_eds)
 
4
 
 
5
set(QORGANIZER_BACKEND_SRCS
 
6
    qorganizer-eds-collection-engineid.cpp
 
7
    qorganizer-eds-fetchrequestdata.cpp
 
8
    qorganizer-eds-fetchbyidrequestdata.cpp
 
9
    qorganizer-eds-fetchocurrencedata.cpp
 
10
    qorganizer-eds-engine.cpp
 
11
    qorganizer-eds-enginedata.cpp
 
12
    qorganizer-eds-engineid.cpp
 
13
    qorganizer-eds-removecollectionrequestdata.cpp
 
14
    qorganizer-eds-removerequestdata.cpp
 
15
    qorganizer-eds-removebyidrequestdata.cpp
 
16
    qorganizer-eds-requestdata.cpp
 
17
    qorganizer-eds-savecollectionrequestdata.cpp
 
18
    qorganizer-eds-saverequestdata.cpp
 
19
    qorganizer-eds-viewwatcher.cpp
 
20
    qorganizer-eds-source-registry.cpp
 
21
)
 
22
 
 
23
set(QORGANIZER_BACKEND_HDRS
 
24
    qorganizer-eds-collection-engineid.h
 
25
    qorganizer-eds-fetchrequestdata.h
 
26
    qorganizer-eds-fetchbyidrequestdata.h
 
27
    qorganizer-eds-fetchocurrencedata.h
 
28
    qorganizer-eds-engine.h
 
29
    qorganizer-eds-enginedata.h
 
30
    qorganizer-eds-engineid.h
 
31
    qorganizer-eds-removecollectionrequestdata.h
 
32
    qorganizer-eds-removerequestdata.h
 
33
    qorganizer-eds-removebyidrequestdata.h
 
34
    qorganizer-eds-requestdata.h
 
35
    qorganizer-eds-savecollectionrequestdata.h
 
36
    qorganizer-eds-saverequestdata.h
 
37
    qorganizer-eds-source-registry.h
 
38
    qorganizer-eds-viewwatcher.h
 
39
)
 
40
 
 
41
add_library(${QORGANIZER_BACKEND}-lib STATIC
 
42
    ${QORGANIZER_BACKEND_SRCS}
 
43
    ${QORGANIZER_BACKEND_HDRS}
 
44
)
 
45
 
 
46
add_library(${QORGANIZER_BACKEND} MODULE
 
47
    qorganizer-eds-factory.cpp
 
48
    qorganizer-eds-factory.h
 
49
)
 
50
 
 
51
include_directories(
 
52
    ${CMAKE_SOURCE_DIR}
 
53
    ${GLIB_INCLUDE_DIRS}
 
54
    ${GIO_INCLUDE_DIRS}
 
55
    ${ECAL_INCLUDE_DIRS}
 
56
    ${EDATASERVER_INCLUDE_DIRS}
 
57
)
 
58
 
 
59
target_link_libraries(${QORGANIZER_BACKEND}-lib
 
60
    ${GLIB_LIBRARIES}
 
61
    ${ECAL_LIBRARIES}
 
62
    ${EDATASERVER_LIBRARIES}
 
63
)
 
64
 
 
65
target_link_libraries(${QORGANIZER_BACKEND}
 
66
    ${QORGANIZER_BACKEND}-lib
 
67
    ${GLIB_LIBRARIES}
 
68
    ${ECAL_LIBRARIES}
 
69
    ${EDATASERVER_LIBRARIES}
 
70
)
 
71
 
 
72
qt5_use_modules(${QORGANIZER_BACKEND}-lib Core Organizer)
 
73
qt5_use_modules(${QORGANIZER_BACKEND} Core Organizer)
 
74
 
 
75
execute_process(
 
76
    COMMAND qmake -query QT_INSTALL_PLUGINS
 
77
    OUTPUT_VARIABLE QT_INSTALL_PLUGINS
 
78
    OUTPUT_STRIP_TRAILING_WHITESPACE
 
79
)
 
80
 
 
81
install(TARGETS ${QORGANIZER_BACKEND} LIBRARY DESTINATION ${QT_INSTALL_PLUGINS}/organizer)