commit
6914be6bb0
|
@ -2,10 +2,14 @@ cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
project(libuhttpd C)
|
project(libuhttpd C)
|
||||||
|
|
||||||
|
option(BUILD_EXAMPLE "Build example" ON)
|
||||||
|
|
||||||
INCLUDE(CheckLibraryExists)
|
INCLUDE(CheckLibraryExists)
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
if(BUILD_EXAMPLE)
|
||||||
add_subdirectory(example)
|
add_subdirectory(example)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue