Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2014-01-13 17:35:36 +0400
committerOlivier Goffart <ogoffart@woboq.com>2014-01-13 17:39:50 +0400
commitbf7ca60becd05234e27692f8fa469a5880fa07bb (patch)
treeee7c6af0fd8366fc05f4d5d92c41fe5aa6952ab6 /csync/CMakeLists.txt
parentd931e0bcc29756dedac469f235aa15ee73b47bc0 (diff)
Move csync in order to merge it with mirall
Diffstat (limited to 'csync/CMakeLists.txt')
-rw-r--r--csync/CMakeLists.txt71
1 files changed, 71 insertions, 0 deletions
diff --git a/csync/CMakeLists.txt b/csync/CMakeLists.txt
new file mode 100644
index 000000000..4e87dfb8d
--- /dev/null
+++ b/csync/CMakeLists.txt
@@ -0,0 +1,71 @@
+project(ocsync C)
+
+# Required cmake version
+cmake_minimum_required(VERSION 2.6.0)
+
+# global needed variables
+set(APPLICATION_NAME ${PROJECT_NAME})
+
+set(APPLICATION_VERSION_MAJOR "0")
+set(APPLICATION_VERSION_MINOR "91")
+set(APPLICATION_VERSION_PATCH "4")
+
+set(APPLICATION_VERSION "${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}")
+
+set(LIBRARY_VERSION "0.2.1")
+set(LIBRARY_SOVERSION "0")
+
+# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
+set(CMAKE_MODULE_PATH
+ ${CMAKE_SOURCE_DIR}/cmake/Modules
+)
+
+# add definitions
+include(DefineCMakeDefaults)
+include(DefinePlatformDefaults)
+include(DefineCompilerFlags)
+include(DefineOptions.cmake)
+
+include(DefineInstallationPaths)
+
+# disallow in-source build
+include(MacroEnsureOutOfSourceBuild)
+macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source build. Please create a separate build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there.")
+
+# add macros
+include(MacroAddPlugin)
+include(MacroCopyFile)
+
+if (NOT WIN32)
+ find_package(Iconv)
+endif (NOT WIN32)
+find_package(CMocka)
+if (CMOCKA_FOUND AND UNIT_TESTING)
+ include(AddCMockaTest)
+endif (CMOCKA_FOUND AND UNIT_TESTING)
+
+include(ConfigureChecks.cmake)
+
+
+set(SOURCE_DIR ${CMAKE_SOURCE_DIR})
+
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
+macro_copy_file(${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.cmake)
+
+if (MEM_NULL_TESTS)
+ add_definitions(-DCSYNC_MEM_NULL_TESTS)
+endif (MEM_NULL_TESTS)
+
+add_subdirectory(src)
+add_subdirectory(config)
+add_subdirectory(doc)
+
+if (CMOCKA_FOUND AND UNIT_TESTING)
+ add_subdirectory(tests)
+endif (CMOCKA_FOUND AND UNIT_TESTING)
+
+configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
+configure_file(config_test.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config_test.h)
+
+