Add a switch for examples similar to the one for tests

Running tests during development at least has a purpose, but compiling
all the samples *every* time is just an annoyance.
This commit is contained in:
Roland Kaufmann 2013-07-31 14:03:53 +02:00
parent ea973849e0
commit 1378114cec

View File

@ -174,7 +174,10 @@ opm_cmake_config (${project})
include (OpmSatellites)
# example programs are found in the tutorials/ and examples/ directory
opm_compile_satellites (${project} examples "" "")
option (BUILD_EXAMPLES "Build the examples/ tree" ON)
if (BUILD_EXAMPLES)
opm_compile_satellites (${project} examples "" "")
endif (BUILD_EXAMPLES)
# infrastructure for testing
enable_testing ()