Skip to content

Commit

Permalink
feat(examples): Add option to enable examples
Browse files Browse the repository at this point in the history
  • Loading branch information
w4bremer committed Oct 20, 2021
1 parent 7bef743 commit b5d96d8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
cmake_minimum_required(VERSION 3.14)

if(DEFINED PROJECT_NAME)
set(SUBPROJECT ON)
endif()

option(BUILD_EXAMPLES "Build examples" FALSE)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand All @@ -17,7 +14,7 @@ add_subdirectory (src)
add_subdirectory (tests)


if(NOT SUBPROJECT)
if(BUILD_EXAMPLES)
add_subdirectory (examples/app)
add_subdirectory (examples/server)
endif()

0 comments on commit b5d96d8

Please sign in to comment.