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
55 set(libmessagelist_core_HEADERS
60 core/modelinvariantindex.h
61 core/modelinvariantrowmapper.h
62 ${CMAKE_CURRENT_BINARY_DIR}/core/settings.h
63 core/storagemodelbase.h
68 set(libmessagelist_utils_HEADERS
69 utils/aggregationcombobox.h
70 utils/aggregationconfigbutton.h
71 utils/configureaggregationsdialog.h
72 utils/configurethemesdialog.h
74 utils/themeconfigbutton.h
77 set(libmessagelist_HEADERS
84 soprano_add_ontology(libmessagelist_SRCS
85 ${CMAKE_SOURCE_DIR}/messagecore/messagetag.trig
91 kde4_add_kcfg_files(libmessagelist_SRCS USE_RELATIVE_PATH
95 kde4_add_library(messagelist ${LIBRARY_TYPE} ${libmessagelist_SRCS})
96 target_link_libraries(messagelist
99 ${KDEPIMLIBS_AKONADI_LIBS}
100 ${KDEPIMLIBS_AKONADI_KMIME_LIBS}
101 ${KDEPIMLIBS_KMIME_LIBS}
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
113 #install( FILES ${libmessagelist_core_HEADERS}
114 # DESTINATION ${INCLUDE_INSTALL_DIR}/messagelist/core
116 #install( FILES ${libmessagelist_utils_HEADERS}
117 # DESTINATION ${INCLUDE_INSTALL_DIR}/messagelist/utils