From 4d9bf8032dd659e091394d688b6a2c59bf222240 Mon Sep 17 00:00:00 2001 From: Vitaly Svyastyn Date: Tue, 31 Oct 2017 13:32:16 +0200 Subject: Initial CMake support. (#1013) * CMake files for building application and core library. * CMake files for core plugins. Now it runs! * CMake files for some plugins. --- libs/CMakeLists.txt | 3 +++ libs/libaxolotl/CMakeLists.txt | 11 +++++++++++ libs/libjson/CMakeLists.txt | 5 +++++ libs/zlib/CMakeLists.txt | 3 +++ 4 files changed, 22 insertions(+) create mode 100644 libs/CMakeLists.txt create mode 100644 libs/libaxolotl/CMakeLists.txt create mode 100644 libs/libjson/CMakeLists.txt create mode 100644 libs/zlib/CMakeLists.txt (limited to 'libs') diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt new file mode 100644 index 0000000000..5c360a5ef0 --- /dev/null +++ b/libs/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory(zlib) +add_subdirectory(libjson) +add_subdirectory(libaxolotl) \ No newline at end of file diff --git a/libs/libaxolotl/CMakeLists.txt b/libs/libaxolotl/CMakeLists.txt new file mode 100644 index 0000000000..a62317dae9 --- /dev/null +++ b/libs/libaxolotl/CMakeLists.txt @@ -0,0 +1,11 @@ +file(GLOB SOURCES "src/*.h" "src/*.c" +"src/protobuf-c/*.c" "src/protobuf-c/*.h" +"src/curve25519/*.c" "src/curve25519/*.h" +"src/curve25519/ed25519/*.c" "src/curve25519/ed25519/*.h" +"src/curve25519/ed25519/nacl_sha512/*.c" "src/curve25519/ed25519/nacl_includes/*.h" +"src/curve25519/ed25519/additions/*.c" "src/curve25519/ed25519/additions/*.h" +"src/signal.def") +include_directories("src" "src/protobuf-c" "src/curve25519" "src/curve25519/ed25519" +"src/curve25519/ed25519/nacl_includes" "src/curve25519/ed25519/additions") +set(TARGET libaxolotl) +include(${CMAKE_SOURCE_DIR}/cmake/lib.cmake) \ No newline at end of file diff --git a/libs/libjson/CMakeLists.txt b/libs/libjson/CMakeLists.txt new file mode 100644 index 0000000000..e76677a636 --- /dev/null +++ b/libs/libjson/CMakeLists.txt @@ -0,0 +1,5 @@ +file(GLOB SOURCES "src/*.h" "src/*.cpp" "src/libjson.def") +set(TARGET libjson) +include(${CMAKE_SOURCE_DIR}/cmake/lib.cmake) + +set_target_properties(${TARGET} PROPERTIES COMPILE_DEFINITIONS "LIBJSON_EXPORTS") \ No newline at end of file diff --git a/libs/zlib/CMakeLists.txt b/libs/zlib/CMakeLists.txt new file mode 100644 index 0000000000..8f66b949c3 --- /dev/null +++ b/libs/zlib/CMakeLists.txt @@ -0,0 +1,3 @@ +file(GLOB SOURCES "src/*.h" "src/*.c" "src/zlib.def") +set(TARGET Zlib) +include(${CMAKE_SOURCE_DIR}/cmake/lib.cmake) \ No newline at end of file -- cgit v1.2.3