summaryrefslogtreecommitdiff
path: root/kdepimlibs/notes/CMakeLists.txt
blob: 6ef6eab7ded286533394c1cfb29cc6dcc3f27c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
project(akonadi-notes)

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_BINARY_DIR}
)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -UQT_NO_CAST_FROM_ASCII -UQT_NO_CAST_TO_ASCII ${KDE4_ENABLE_EXCEPTIONS}")

set(akonadinotes_LIB_SRC
  ${LIBCALENDARING_NOTES_PATH}/noteutils.cpp
)
add_library(calendaring-akonadi-notes ${LIBRARY_TYPE} ${akonadinotes_LIB_SRC})

target_link_libraries(calendaring-akonadi-notes calendaring-kmime
${QT_QTXML_LIBRARY} ${QT_QTGUI_LIBRARY})

set_target_properties(calendaring-akonadi-notes PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})

install(TARGETS calendaring-akonadi-notes EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})

install( FILES
  ${LIBCALENDARING_NOTES_PATH}/noteutils.h
  ${LIBCALENDARING_NOTES_PATH}/akonadi-notes_export.h
  DESTINATION ${INCLUDE_INSTALL_DIR}/akonadi/notes COMPONENT Devel
)

# add_subdirectory(tests)