2021-01-20 14:34:15 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2017-11-09 04:54:28 +00:00
|
|
|
|
2017-12-30 04:24:00 +00:00
|
|
|
project(libuhttpd C)
|
2017-11-09 04:54:28 +00:00
|
|
|
|
2021-01-08 07:01:26 +00:00
|
|
|
option(BUILD_EXAMPLE "Build example" ON)
|
|
|
|
|
2020-04-05 11:55:48 +00:00
|
|
|
INCLUDE(CheckLibraryExists)
|
|
|
|
|
2017-11-09 04:54:28 +00:00
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
|
|
|
|
|
|
|
add_subdirectory(src)
|
2021-01-08 07:01:26 +00:00
|
|
|
if(BUILD_EXAMPLE)
|
|
|
|
add_subdirectory(example)
|
|
|
|
endif()
|
2019-08-27 02:21:37 +00:00
|
|
|
|