Skip to content

Commit

Permalink
Add ENABLE_SAMPLES
Browse files Browse the repository at this point in the history
Signed-off-by: FrancisANDRE <[email protected]>
  • Loading branch information
zosrothko committed Dec 21, 2015
1 parent 896341d commit 609072a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ option(ENABLE_REDIS "Enable Redis" ON)
option(FORCE_OPENSSL "Force usage of OpenSSL even under windows" OFF)

option(ENABLE_TESTS
"Set to OFF|ON (default is OFF) to control build of POCO tests & samples" OFF)
"Set to OFF|ON (default is OFF) to control build of POCO tests" OFF)

option(ENABLE_SAMPLES
"Set to OFF|ON (default is OFF) to control build of POCO samples" OFF)

option(POCO_STATIC
"Set to OFF|ON (default is OFF) to control build of POCO as STATIC library" OFF)
Expand Down Expand Up @@ -112,9 +115,15 @@ endif(POCO_STATIC)
if (ENABLE_TESTS)
include(CTest)
enable_testing()
message(STATUS "Building with unittests & samples")
message(STATUS "Building with unittests")
else ()
message(STATUS "Building without tests")
endif ()

if (ENABLE_SAMPLES)
message(STATUS "Building with samples")
else ()
message(STATUS "Building without tests & samples")
message(STATUS "Building without samples")
endif ()

if (POCO_UNBUNDLED)
Expand Down

0 comments on commit 609072a

Please sign in to comment.