aboutsummaryrefslogtreecommitdiff
path: root/CMakeModules
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-09-01 13:07:57 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-09-01 14:05:40 +0200
commitdffdb1388991c5b5688139bfa093c8581a0f3a36 (patch)
treeaf0d82089d335e8b9eda6d6f754da4b2905eb901 /CMakeModules
parent9d7701c370f06be663f2a485507d388ab5194ca8 (diff)
downloadcmix-dffdb1388991c5b5688139bfa093c8581a0f3a36.tar.gz
cmix-dffdb1388991c5b5688139bfa093c8581a0f3a36.tar.bz2
cmix-dffdb1388991c5b5688139bfa093c8581a0f3a36.zip
Added a sodium implementation for creating private and public keys.
Diffstat (limited to 'CMakeModules')
-rw-r--r--CMakeModules/ImportSodium.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeModules/ImportSodium.cmake b/CMakeModules/ImportSodium.cmake
new file mode 100644
index 0000000..a8b939c
--- /dev/null
+++ b/CMakeModules/ImportSodium.cmake
@@ -0,0 +1,10 @@
+
+add_library(Sodium UNKNOWN IMPORTED)
+
+find_library(Sodium_LIBRARY NAMES "sodium")
+
+set_property(TARGET Sodium PROPERTY IMPORTED_LOCATION "${Sodium_LIBRARY}")
+
+find_path(Sodium_INCLUDE_DIR NAMES "sodium.h")
+
+set_property(TARGET Sodium PROPERTY INCLUDE_DIRECTORIES ${Sodium_INCLUDE_DIR})