CMakeLists.txt: add BUILD_EXAMPLE
Allow the user to disable example Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
1 parent
d53a954794
commit
a1a43f8370
1 file changed
+5
-1
+5
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user