diff --git a/CMakeLists.txt b/CMakeLists.txt index 313eef0..9f07fc5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,6 @@ target_link_options(mastodont PUBLIC target_include_directories(mastodont PUBLIC include/ ${CURL_INCLUDE_DIRS} - PRIVATE libs/ ) diff --git a/cmake/mastodont-config.cmake b/cmake/mastodont-config.cmake index a47726a..31139b0 100644 --- a/cmake/mastodont-config.cmake +++ b/cmake/mastodont-config.cmake @@ -3,9 +3,12 @@ set(MASTODONT_FOUND) set(MASTODONT_VERSION 0.1) # Get parent directory of this config file +find_package(CURL REQUIRED) set(MASTODONT_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../include" "${CMAKE_CURRENT_LIST_DIR}/../libs" ) -set(MASTODONT_LIBRARIES "mastodont") +set(MASTODONT_LIBRARIES "mastodont" "curl") + +