diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-05-07 01:05:16 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-05-07 01:06:44 -0400 |
commit | 9469cda4247146587dfd386a17a99ef48c502dbe (patch) | |
tree | 497ae85da5b57d5477e96e519a9fc6f3f4d7b428 /src | |
parent | eb2a0eb241e6a187b93aeef3f737b60657758384 (diff) | |
download | spmc-9469cda4247146587dfd386a17a99ef48c502dbe.tar.gz |
Use pkg-config
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2bd023c..b8c042f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,13 +1,16 @@ include_directories( ${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include + ${OpenSSL_INCLUDE_DIRS} + ${CURL_INCLUDE_DIRS} ) add_executable(spm spm.c ) -target_link_libraries(spm libspm crypto ssl curl) +target_link_directories(spm PUBLIC ${OpenSSL_LIBRARY_DIRS} ${CURL_LIBRARY_DIRS}) +target_link_libraries(spm libspm ${OpenSSL_LIBRARIES} ${CURL_LIBRARIES}) if (LINUX) target_link_libraries(spm libspm rt) endif() |