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:
parent
ea973849e0
commit
1378114cec
@ -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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user