aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 82d6667..9127b07 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.13.5)
+option(BUILD_EXAMPLES ON)
project(slweb C)
add_library(${PROJECT_NAME}
handler.c
@@ -9,3 +10,7 @@ add_library(${PROJECT_NAME}
add_subdirectory(dynstr)
target_include_directories(${PROJECT_NAME} PUBLIC include)
target_link_libraries(${PROJECT_NAME} PUBLIC dynstr)
+
+if(BUILD_EXAMPLES)
+ add_subdirectory(examples)
+endif()