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)
10 add_subdirectory(tests)
14 ${SOPRANO_INCLUDE_DIR}
15 ${CMAKE_CURRENT_BINARY_DIR}
18 set(libmessagelist_SRCS
20 core/callbacknepomukresourceretriever.cpp
24 core/groupheaderitem.cpp
27 core/messageitemsetmanager.cpp
29 core/modelinvariantindex.cpp
30 core/modelinvariantrowmapper.cpp
33 core/themedelegate.cpp
34 core/storagemodelbase.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
56 set(libmessagelist_core_HEADERS
61 core/modelinvariantindex.h
62 core/modelinvariantrowmapper.h
63 ${CMAKE_CURRENT_BINARY_DIR}/core/settings.h
64 core/storagemodelbase.h
69 set(libmessagelist_utils_HEADERS
70 utils/aggregationcombobox.h
71 utils/aggregationconfigbutton.h
72 utils/configureaggregationsdialog.h
73 utils/configurethemesdialog.h
75 utils/themeconfigbutton.h
78 set(libmessagelist_HEADERS
85 soprano_add_ontology(libmessagelist_SRCS
86 ${CMAKE_SOURCE_DIR}/messagecore/messagetag.trig
92 kde4_add_kcfg_files(libmessagelist_SRCS USE_RELATIVE_PATH
96 kde4_add_library(messagelist ${LIBRARY_TYPE} ${libmessagelist_SRCS})
97 target_link_libraries(messagelist
100 ${KDEPIMLIBS_AKONADI_LIBS}
101 ${KDEPIMLIBS_AKONADI_KMIME_LIBS}
102 ${KDEPIMLIBS_KMIME_LIBS}
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
115 #install( FILES ${libmessagelist_core_HEADERS}
116 # DESTINATION ${INCLUDE_INSTALL_DIR}/messagelist/core
118 #install( FILES ${libmessagelist_utils_HEADERS}
119 # DESTINATION ${INCLUDE_INSTALL_DIR}/messagelist/utils