From 4e94dfc7e057776b0d1aafbeb72c8dad7918d988 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Mon, 11 Jun 2018 21:02:27 +0300 Subject: Add CMake support The library can now be installed using CMake v3.0+. Below is an example configuration. 1. Generate configuation cmake -H. -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release // The default profile. -DCMAKE_INSTALL_PREFIX=/usr/local/ -DBUILD_SHARED_LIBS=ON -DOLM_TESTS=1 -DOLM_FUZZERS=1 2. Build & install the targets cmake --build build --config Release --target install 3. Run the tests cd build/test && ctest . The library can also be used as a dependency with CMake using find_package(Olm::Olm REQUIRED) target_link_libraries(my_exe Olm::Olm) Signed-off-by: Konstantinos Sideris --- fuzzers/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 fuzzers/CMakeLists.txt (limited to 'fuzzers/CMakeLists.txt') diff --git a/fuzzers/CMakeLists.txt b/fuzzers/CMakeLists.txt new file mode 100644 index 0000000..ec95b59 --- /dev/null +++ b/fuzzers/CMakeLists.txt @@ -0,0 +1,19 @@ +add_executable(fuzz_decode_message fuzz_decode_message.cpp) +target_include_directories(fuzz_decode_message PRIVATE include) +target_link_libraries(fuzz_decode_message Olm::Olm) + +add_executable(fuzz_decrypt fuzz_decrypt.cpp) +target_include_directories(fuzz_decrypt PRIVATE include) +target_link_libraries(fuzz_decrypt Olm::Olm) + +add_executable(fuzz_group_decrypt fuzz_group_decrypt.cpp) +target_include_directories(fuzz_group_decrypt PRIVATE include) +target_link_libraries(fuzz_group_decrypt Olm::Olm) + +add_executable(fuzz_unpickle_account fuzz_unpickle_account.cpp) +target_link_libraries(fuzz_unpickle_account Olm::Olm) +target_include_directories(fuzz_unpickle_account PRIVATE include) + +add_executable(fuzz_unpickle_session fuzz_unpickle_session.cpp) +target_link_libraries(fuzz_unpickle_session Olm::Olm) +target_include_directories(fuzz_unpickle_session PRIVATE include) -- cgit v1.2.3