CMake: Add options for tests and documentation.
This commit is contained in:
parent
cd5803080f
commit
642fc26f46
|
@ -9,6 +9,9 @@ project(curl_wrapper
|
||||||
DESCRIPTION "Simple libcurl wrapper."
|
DESCRIPTION "Simple libcurl wrapper."
|
||||||
LANGUAGES CXX)
|
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)
|
find_package(CURL 7.52 REQUIRED)
|
||||||
|
|
||||||
add_subdirectory("src")
|
add_subdirectory("src")
|
||||||
|
|
|
@ -38,10 +38,14 @@ target_link_libraries(test PRIVATE curl_wrapper)
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
.CMake options:
|
.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
|
== Dependencies
|
||||||
|
|
||||||
- C++17
|
- C++17
|
||||||
- CMake >=3.9
|
- CMake >= 3.9
|
||||||
- libcurl >= 7.52
|
- libcurl >= 7.52
|
||||||
|
- Optional:
|
||||||
|
- Tests: Catch >= 1.2
|
||||||
|
- Documentation: Doxygen >= 1.8
|
||||||
|
|
Loading…
Reference in New Issue