aboutsummaryrefslogtreecommitdiff
path: root/src/openpgp/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/openpgp/CMakeLists.txt')
-rw-r--r--src/openpgp/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/openpgp/CMakeLists.txt b/src/openpgp/CMakeLists.txt
new file mode 100644
index 00000000..a5a36ee7
--- /dev/null
+++ b/src/openpgp/CMakeLists.txt
@@ -0,0 +1,18 @@
+file(GLOB_RECURSE SOURCES *.cpp)
+file(GLOB_RECURSE HEADERS *.h)
+
+find_library(GCRYPT_LIBRARY gcrypt)
+find_library(GPG_ERROR_LIBRARY gpg-error)
+
+add_library(openpgp
+ ${SOURCES}
+ ${HEADERS})
+
+target_include_directories(openpgp
+ PUBLIC
+ ${CMAKE_SOURCE_DIR}/monero/contrib/epee/include)
+
+target_link_libraries(openpgp
+ PUBLIC
+ ${GCRYPT_LIBRARY}
+ ${GPG_ERROR_LIBRARY})