20 lines
531 B
CMake
20 lines
531 B
CMake
# Support version 3.9 and above, but use policy settings up to 3.17.
|
|
cmake_minimum_required(VERSION 3.9...3.17)
|
|
# Ranges are supported from 3.12, set policy to current for < 3.12.
|
|
if(${CMAKE_VERSION} VERSION_LESS 3.12)
|
|
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
|
|
endif()
|
|
|
|
project(curl_wrapper
|
|
DESCRIPTION "Simple curl wrapper."
|
|
LANGUAGES CXX)
|
|
|
|
find_package(CURL 7.52 REQUIRED)
|
|
find_package(Boost 1.54 REQUIRED COMPONENTS regex)
|
|
|
|
add_subdirectory(src)
|
|
|
|
if(WITH_TESTS)
|
|
add_subdirectory(tests)
|
|
endif()
|