Merge pull request #14 from ffontaine/master

CMakeLists.txt: add BUILD_EXAMPLE
main^2
Jianhui Zhao 2021-01-08 18:13:30 +08:00 committed by GitHub
commit 6914be6bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -2,10 +2,14 @@ cmake_minimum_required(VERSION 2.8)
project(libuhttpd C)
option(BUILD_EXAMPLE "Build example" ON)
INCLUDE(CheckLibraryExists)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
add_subdirectory(src)
add_subdirectory(example)
if(BUILD_EXAMPLE)
add_subdirectory(example)
endif()