Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
b6a58ce7
Commit
b6a58ce7
authored
6 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
link ssl
parent
5ec72e21
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+17
-2
17 additions, 2 deletions
CMakeLists.txt
with
17 additions
and
2 deletions
CMakeLists.txt
+
17
−
2
View file @
b6a58ce7
...
...
@@ -62,6 +62,9 @@ if (OPENDHT_PROXY_SERVER OR OPENDHT_PROXY_CLIENT)
if
(
NOT Jsoncpp_FOUND
)
message
(
SEND_ERROR
"Jsoncpp is required for DHT proxy support"
)
endif
()
pkg_search_module
(
SSL libssl
)
pkg_search_module
(
Crypto libcrypto
)
pkg_search_module
(
Tls libtls
)
endif
()
# Build flags
...
...
@@ -106,8 +109,20 @@ endif ()
if
(
Jsoncpp_INCLUDE_DIRS
)
include_directories
(
SYSTEM
"
${
Jsoncpp_INCLUDE_DIRS
}
"
)
endif
()
if
(
SSL_INCLUDE_DIRS
)
include_directories
(
SYSTEM
"
${
SSL_INCLUDE_DIRS
}
"
)
endif
()
if
(
Crypto_INCLUDE_DIRS
)
include_directories
(
SYSTEM
"
${
Crypto_INCLUDE_DIRS
}
"
)
endif
()
if
(
Tls_INCLUDE_DIRS
)
include_directories
(
SYSTEM
"
${
Tls_INCLUDE_DIRS
}
"
)
endif
()
link_directories
(
${
Nettle_LIBRARY_DIRS
}
)
link_directories
(
${
Jsoncpp_LIBRARY_DIRS
}
)
link_directories
(
${
SSL_LIBRARY_DIRS
}
)
link_directories
(
${
Crypto_LIBRARY_DIRS
}
)
link_directories
(
${
Tls_LIBRARY_DIRS
}
)
include_directories
(
./
include/
...
...
@@ -255,7 +270,7 @@ if (OPENDHT_STATIC)
target_include_directories
(
opendht-static SYSTEM PRIVATE
${
argon2_INCLUDE_DIRS
}
)
endif
()
target_link_libraries
(
opendht-static
PRIVATE
${
Restbed_LIBRARY
}
${
argon2_LIBRARIES
}
PRIVATE
${
Restbed_LIBRARY
}
${
argon2_LIBRARIES
}
${
SSL_LIBRARIES
}
${
Crypto_LIBRARIES
}
${
Tls_LIBRARIES
}
PUBLIC
${
CMAKE_THREAD_LIBS_INIT
}
${
GNUTLS_LIBRARIES
}
${
Nettle_LIBRARIES
}
${
Jsoncpp_LIBRARIES
}
)
install
(
TARGETS opendht-static DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
EXPORT opendht
)
endif
()
...
...
@@ -274,7 +289,7 @@ if (OPENDHT_SHARED)
target_link_libraries
(
opendht PRIVATE
${
argon2_LIBRARIES
}
)
target_include_directories
(
opendht SYSTEM PRIVATE
${
argon2_INCLUDE_DIRS
}
)
endif
()
target_link_libraries
(
opendht PRIVATE
${
CMAKE_THREAD_LIBS_INIT
}
${
GNUTLS_LIBRARIES
}
${
Nettle_LIBRARIES
}
${
Restbed_LIBRARY
}
${
Jsoncpp_LIBRARIES
}
)
target_link_libraries
(
opendht PRIVATE
${
CMAKE_THREAD_LIBS_INIT
}
${
GNUTLS_LIBRARIES
}
${
Nettle_LIBRARIES
}
${
Restbed_LIBRARY
}
${
Jsoncpp_LIBRARIES
}
${
SSL_LIBRARIES
}
${
Crypto_LIBRARIES
}
${
Tls_LIBRARIES
}
)
install
(
TARGETS opendht DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
EXPORT opendht
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment