Fix clipping/eliding of multi-line task descriptions.
[kdepim.git] / messagelist / CMakeLists.txt
blob83b4f1add4fa9795030ab865d39b8d3e5aa7d64f
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
55 set(libmessagelist_core_HEADERS
56     core/enums.h
57     core/item.h
58     core/messageitem.h
59     core/model.h
60     core/modelinvariantindex.h
61     core/modelinvariantrowmapper.h
62     ${CMAKE_CURRENT_BINARY_DIR}/core/settings.h
63     core/storagemodelbase.h
64     core/view.h
65     core/widgetbase.h
68 set(libmessagelist_utils_HEADERS
69     utils/aggregationcombobox.h
70     utils/aggregationconfigbutton.h
71     utils/configureaggregationsdialog.h
72     utils/configurethemesdialog.h
73     utils/themecombobox.h
74     utils/themeconfigbutton.h
77 set(libmessagelist_HEADERS
78     pane.h
79     storagemodel.h
80     widget.h
84 soprano_add_ontology(libmessagelist_SRCS
85   ${CMAKE_SOURCE_DIR}/messagecore/messagetag.trig
86   "MessageTag"
87   "Vocabulary"
88   "trig"
91 kde4_add_kcfg_files(libmessagelist_SRCS USE_RELATIVE_PATH
92     core/settings.kcfgc
95 kde4_add_library(messagelist ${LIBRARY_TYPE} ${libmessagelist_SRCS})
96 target_link_libraries(messagelist
97     ${KDE4_KDEUI_LIBS}
98     ${KDE4_KIO_LIBS}
99     ${KDEPIMLIBS_AKONADI_LIBS}
100     ${KDEPIMLIBS_AKONADI_KMIME_LIBS}
101     ${KDEPIMLIBS_KMIME_LIBS}
102     ${NEPOMUK_LIBRARIES}
103     ${SOPRANO_LIBRARIES}
104     messagecore
105     niefast_apps
108 set_target_properties(messagelist PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
109 install(TARGETS messagelist ${INSTALL_TARGETS_DEFAULT_ARGS})
110 #install( FILES ${libmessagelist_HEADERS}
111 #         DESTINATION ${INCLUDE_INSTALL_DIR}/messagelist
112 #         COMPONENT devel)
113 #install( FILES ${libmessagelist_core_HEADERS}
114 #         DESTINATION ${INCLUDE_INSTALL_DIR}/messagelist/core
115 #         COMPONENT devel)
116 #install( FILES ${libmessagelist_utils_HEADERS}
117 #         DESTINATION ${INCLUDE_INSTALL_DIR}/messagelist/utils
118 #         COMPONENT devel)