summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2015-05-26 19:28:49 +0200
committerChristian Mollekopf <mollekopf@kolabsys.com>2015-05-26 19:28:49 +0200
commitd13aaf8a3711fd16451ab7756473941e6bd6bf24 (patch)
treeabfff0e96e4d425b4e419c5b709ca5b11ba9324a
parenta7bdd37c7141c891d1cdb3722599fbb294bd3308 (diff)
downloadlibkolab-d13aaf8a3711fd16451ab7756473941e6bd6bf24.tar.gz
Made building the tools optional.
For windows.
-rw-r--r--CMakeLists.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b3b1896..1ca421a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,7 @@ project(Libkolab)
cmake_minimum_required(VERSION 2.6.4)
option( BUILD_TESTS "Build the tests" TRUE )
+option( BUILD_TOOLS "Build the tools" TRUE )
option( PYTHON_BINDINGS "Build bindings for python" FALSE )
option( PHP_BINDINGS "Build bindings for php" FALSE )
option( USE_LIBCALENDARING "Use libcalendaring" FALSE )
@@ -150,7 +151,9 @@ add_subdirectory(conversion)
add_subdirectory(calendaring)
add_subdirectory(icalendar)
add_subdirectory(freebusy)
-add_subdirectory(utils)
+if (BUILD_TOOLS)
+ add_subdirectory(utils)
+endif()
QT4_WRAP_CPP(CALENDARING_MOC calendaring/event.h)
# QT4_WRAP_CPP(CONVERSION_MOC conversion/qtevent.h conversion/qtduration.h)
@@ -179,11 +182,14 @@ set(KOLAB_LINK_LIBRARIES
${QT_QTGUI_LIBRARY}
${KDE_LIBRARIES}
)
-if(BUILD_TESTS)
- #for tests only
- enable_testing()
+
+if (BUILD_TOOLS OR BUILD_TESTS)
add_library(kolab_static STATIC ${KOLAB_SRCS})
target_link_libraries(kolab_static ${KOLAB_LINK_LIBRARIES})
+endif()
+
+if(BUILD_TESTS)
+ enable_testing()
add_subdirectory(tests)
endif(BUILD_TESTS)