Add ENABLE_SAMPLES

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE 2015-12-21 23:38:38 +01:00
parent 896341d7a4
commit 609072a5ad

View File

@ -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)
@ -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 & samples")
message(STATUS "Building without tests")
endif ()
if (ENABLE_SAMPLES)
message(STATUS "Building with samples")
else ()
message(STATUS "Building without samples")
endif ()
if (POCO_UNBUNDLED)