aboutsummaryrefslogtreecommitdiff
path: root/lib/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-05-07 01:05:16 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-05-07 01:06:44 -0400
commit9469cda4247146587dfd386a17a99ef48c502dbe (patch)
tree497ae85da5b57d5477e96e519a9fc6f3f4d7b428 /lib/CMakeLists.txt
parenteb2a0eb241e6a187b93aeef3f737b60657758384 (diff)
downloadspmc-9469cda4247146587dfd386a17a99ef48c502dbe.tar.gz
Use pkg-config
Diffstat (limited to 'lib/CMakeLists.txt')
-rw-r--r--lib/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 2185ef4..96147e1 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -1,6 +1,8 @@
include_directories(
${CMAKE_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}/include
+ ${OpenSSL_INCLUDE_DIRS}
+ ${CURL_INCLUDE_DIRS}
)
set(libspm_src
@@ -39,7 +41,8 @@ add_library(libspm SHARED $<TARGET_OBJECTS:libspm_obj>)
add_library(libspm_static STATIC $<TARGET_OBJECTS:libspm_obj>)
-target_link_libraries(libspm crypto ssl curl)
+target_link_directories(libspm PUBLIC ${OpenSSL_LIBRARY_DIRS} ${CURL_LIBRARY_DIRS})
+target_link_libraries(libspm ${OpenSSL_LIBRARIES} ${CURL_LIBRARIES})
if (LINUX)
target_link_libraries(libspm rt)
endif()