diff --git a/CMakeLists.txt b/CMakeLists.txt index 034b537..559dee1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,9 @@ project(curl_wrapper DESCRIPTION "Simple libcurl wrapper." LANGUAGES CXX) +option(WITH_CURL_WRAPPER_TESTS "Compile tests for curl_wrapper." NO) +option(WITH_CURL_WRAPPER_DOC "Compile API reference for curl_wrapper." NO) + find_package(CURL 7.52 REQUIRED) add_subdirectory("src") diff --git a/README.adoc b/README.adoc index 716860c..690ab84 100644 --- a/README.adoc +++ b/README.adoc @@ -38,10 +38,14 @@ target_link_libraries(test PRIVATE curl_wrapper) -------------------------------------------------------------------------------- .CMake options: -- `-DWITH_TESTS=YES` compiles the tests. +- `-DWITH_CURL_WRAPPER_TESTS=YES` Compiles the tests. +- `-DWITH_CURL_WRAPPER_DOC=YES` Generate API reference. == Dependencies - C++17 -- CMake >=3.9 +- CMake >= 3.9 - libcurl >= 7.52 +- Optional: + - Tests: Catch >= 1.2 + - Documentation: Doxygen >= 1.8