mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
Merge pull request #3244
2d20bfd7
cmake: find libgcrypt include directory (xiphon)
This commit is contained in:
commit
d5365298d2
1 changed files with 6 additions and 3 deletions
|
@ -1,8 +1,10 @@
|
||||||
file(GLOB_RECURSE SOURCES *.cpp)
|
file(GLOB_RECURSE SOURCES *.cpp)
|
||||||
file(GLOB_RECURSE HEADERS *.h)
|
file(GLOB_RECURSE HEADERS *.h)
|
||||||
|
|
||||||
find_library(GCRYPT_LIBRARY gcrypt)
|
find_library(GCRYPT_LIBRARY gcrypt REQUIRED)
|
||||||
find_library(GPG_ERROR_LIBRARY gpg-error)
|
find_path(GCRYPT_INCLUDE_DIR gcrypt.h REQUIRED)
|
||||||
|
|
||||||
|
find_library(GPG_ERROR_LIBRARY gpg-error REQUIRED)
|
||||||
|
|
||||||
add_library(openpgp
|
add_library(openpgp
|
||||||
${SOURCES}
|
${SOURCES}
|
||||||
|
@ -10,7 +12,8 @@ add_library(openpgp
|
||||||
|
|
||||||
target_include_directories(openpgp
|
target_include_directories(openpgp
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${CMAKE_SOURCE_DIR}/monero/contrib/epee/include)
|
${CMAKE_SOURCE_DIR}/monero/contrib/epee/include
|
||||||
|
${GCRYPT_INCLUDE_DIR})
|
||||||
|
|
||||||
target_link_libraries(openpgp
|
target_link_libraries(openpgp
|
||||||
PUBLIC
|
PUBLIC
|
||||||
|
|
Loading…
Reference in a new issue