2 check_type_size("unsigned long" SIZEOF_UNSIGNED_LONG)
3 configure_file(config-libksieve.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-libksieve.h )
5 include_directories( ${CMAKE_SOURCE_DIR}/libkdepim )
7 set(libksieve_parser_SRCS
8 ${CMAKE_SOURCE_DIR}/libksieve/parser/utf8validator.cpp
9 ${CMAKE_SOURCE_DIR}/libksieve/parser/lexer.cpp
10 ${CMAKE_SOURCE_DIR}/libksieve/parser/parser.cpp
13 add_subdirectory( ksieve )
14 add_subdirectory( tests )
16 ########### next target ###############
19 ${CMAKE_SOURCE_DIR}/libksieve/shared/error.cpp
20 ${libksieve_parser_SRCS})
23 kde4_add_library(ksieve SHARED ${ksieve_LIB_SRCS})
25 target_link_libraries(ksieve ${KDE4_KDECORE_LIBS})
27 set_target_properties(ksieve PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
28 install(TARGETS ksieve ${INSTALL_TARGETS_DEFAULT_ARGS})