summaryrefslogtreecommitdiff
path: root/notes/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-27 08:22:11 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-27 08:22:11 (GMT)
commite51f456146457a444dab9c477c8e21bcd9faf9b4 (patch)
treeee4f5186d6e58c7a4136bf915e9c3b2efa4c5576 /notes/CMakeLists.txt
parentad466258dc5a568260c33808827b8870777a69f7 (diff)
downloadlibcalendaring-e51f456146457a444dab9c477c8e21bcd9faf9b4.tar.gz
akonadi notes
Diffstat (limited to 'notes/CMakeLists.txt')
-rw-r--r--notes/CMakeLists.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/notes/CMakeLists.txt b/notes/CMakeLists.txt
new file mode 100644
index 0000000..941a324
--- /dev/null
+++ b/notes/CMakeLists.txt
@@ -0,0 +1,45 @@
+project(akonadi-notes)
+
+set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
+cmake_minimum_required(VERSION 2.6)
+
+# only available from cmake-2.8.0
+if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7)
+ cmake_policy(SET CMP0012 NEW)
+endif()
+
+# only available from cmake-2.8.4
+if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7 AND
+ ${CMAKE_PATCH_VERSION} GREATER 3)
+ cmake_policy(SET CMP0017 NEW)
+endif()
+
+find_package(Qt4 4.6.0 REQUIRED)
+
+include_directories(${QT_INCLUDES})
+
+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
+ noteutils.cpp
+)
+add_library(calendaring-akonadi-notes ${LIBRARY_TYPE} ${akonadinotes_LIB_SRC})
+
+target_link_libraries(calendaring-akonadi-notes calendaring-kmime ${QT_QTXML_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
+ noteutils.h
+ akonadi-notes_export.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/akonadi/notes COMPONENT Devel
+)
+
+# add_subdirectory(tests)