aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-10-22 11:32:33 -0400
committerGitHub <noreply@github.com>2018-10-22 11:32:33 -0400
commit1aafac2874affafd8c8fc7e3022c6ca6d2d078d6 (patch)
tree60d1d3f8e44d8c0672ad81a9afbb9bc0b27e3966 /tests/CMakeLists.txt
parent2784e495957ee96c7ce2e44eea77e02085868680 (diff)
parent46f80e71be37b8f98ed03dd8a7fae72b5887a3b4 (diff)
Merge pull request #67 from matrix-org/cmake
CMake support
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..12aaac4
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,37 @@
+enable_testing()
+
+foreach(test IN ITEMS
+ test_base64
+ test_crypto
+ test_group_session
+ test_list
+ test_megolm
+ test_message
+ test_olm
+ test_olm_decrypt
+ test_olm_sha256
+ test_olm_signature
+ test_olm_using_malloc
+ test_ratchet
+ test_session
+ test_pk
+ )
+add_executable(${test} ${test}.cpp)
+target_include_directories(${test} PRIVATE include)
+target_link_libraries(${test} Olm::Olm)
+endforeach(test)
+
+add_test(Base64 test_base64)
+add_test(Crypto test_crypto)
+add_test(GroupSession test_group_session)
+add_test(List test_list)
+add_test(Megolm test_megolm)
+add_test(Message test_message)
+add_test(Olm test_olm)
+add_test(OlmDecrypt test_olm_decrypt)
+add_test(OlmSha256 test_olm_sha256)
+add_test(OlmSignature test_olm_signature)
+add_test(OlmUsingMalloc test_olm_using_malloc)
+add_test(Ratchet test_ratchet)
+add_test(Session test_session)
+add_test(PublicKey test_session)