Better english
[kdepim.git] / messagelist / CMakeLists.txt
blobd7f9bd1a87cfb1e57c8b888524b08a58d30d9507
1 project(messagelist)
3 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
4 add_definitions( "-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII" )
6 option(KDEPIM_FOLDEROPEN_PROFILE "Enable debug output for timing folder loading" FALSE)
7 configure_file(config-messagelist.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-messagelist.h)
9 add_subdirectory(pics)
10 add_subdirectory(tests)
12 include_directories(
13     ${Boost_INCLUDE_DIRS}
14     ${SOPRANO_INCLUDE_DIR}
15     ${CMAKE_CURRENT_BINARY_DIR}
18 set(libmessagelist_SRCS
19     core/aggregation.cpp
20     core/callbacknepomukresourceretriever.cpp
21     core/delegate.cpp
22     core/filter.cpp
23     core/item.cpp
24     core/groupheaderitem.cpp
25     core/manager.cpp
26     core/messageitem.cpp
27     core/messageitemsetmanager.cpp
28     core/model.cpp
29     core/modelinvariantindex.cpp
30     core/modelinvariantrowmapper.cpp
31     core/optionset.cpp
32     core/theme.cpp
33     core/themedelegate.cpp
34     core/storagemodelbase.cpp
35     core/sortorder.cpp
36     core/view.cpp
37     core/widgetbase.cpp
39     utils/aggregationcombobox.cpp
40     utils/aggregationconfigbutton.cpp
41     utils/aggregationeditor.cpp
42     utils/comboboxutils.cpp
43     utils/configureaggregationsdialog.cpp
44     utils/configurethemesdialog.cpp
45     utils/optionseteditor.cpp
46     utils/themecombobox.cpp
47     utils/themeconfigbutton.cpp
48     utils/themeeditor.cpp
50     pane.cpp
51     storagemodel.cpp
52     widget.cpp
53     messagelistutil.cpp
56 set(libmessagelist_core_HEADERS
57     core/enums.h
58     core/item.h
59     core/messageitem.h
60     core/model.h
61     core/modelinvariantindex.h
62     core/modelinvariantrowmapper.h
63     ${CMAKE_CURRENT_BINARY_DIR}/core/settings.h
64     core/storagemodelbase.h
65     core/view.h
66     core/widgetbase.h
69 set(libmessagelist_utils_HEADERS
70     utils/aggregationcombobox.h
71     utils/aggregationconfigbutton.h
72     utils/configureaggregationsdialog.h
73     utils/configurethemesdialog.h
74     utils/themecombobox.h
75     utils/themeconfigbutton.h
78 set(libmessagelist_HEADERS
79     pane.h
80     storagemodel.h
81     widget.h
85 soprano_add_ontology(libmessagelist_SRCS
86   ${CMAKE_SOURCE_DIR}/messagecore/messagetag.trig
87   "MessageTag"
88   "Vocabulary"
89   "trig"
92 kde4_add_kcfg_files(libmessagelist_SRCS USE_RELATIVE_PATH
93     core/settings.kcfgc
96 kde4_add_library(messagelist ${LIBRARY_TYPE} ${libmessagelist_SRCS})
97 target_link_libraries(messagelist
98     ${KDE4_KDEUI_LIBS}
99     ${KDE4_KIO_LIBS}
100     ${KDEPIMLIBS_AKONADI_LIBS}
101     ${KDEPIMLIBS_AKONADI_KMIME_LIBS}
102     ${KDEPIMLIBS_KMIME_LIBS}
103     ${NEPOMUK_LIBRARIES}
104     ${SOPRANO_LIBRARIES}
105     nepomukquery
106     messagecore
107     niefast_apps
110 set_target_properties(messagelist PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
111 install(TARGETS messagelist ${INSTALL_TARGETS_DEFAULT_ARGS})
112 #install( FILES ${libmessagelist_HEADERS}
113 #         DESTINATION ${INCLUDE_INSTALL_DIR}/messagelist
114 #         COMPONENT devel)
115 #install( FILES ${libmessagelist_core_HEADERS}
116 #         DESTINATION ${INCLUDE_INSTALL_DIR}/messagelist/core
117 #         COMPONENT devel)
118 #install( FILES ${libmessagelist_utils_HEADERS}
119 #         DESTINATION ${INCLUDE_INSTALL_DIR}/messagelist/utils
120 #         COMPONENT devel)