diff --git a/CMakeLists.txt b/CMakeLists.txt index abc735564..4293da91f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,6 +85,13 @@ macro (prereqs_hook) endmacro (prereqs_hook) macro (sources_hook) + if (NOT SuiteSparse_FOUND) + list (REMOVE_ITEM examples_SOURCES + ${PROJECT_SOURCE_DIR}/tutorials/tutorial2.cpp + ${PROJECT_SOURCE_DIR}/tutorials/tutorial3.cpp + ${PROJECT_SOURCE_DIR}/tutorials/tutorial4.cpp + ) + endif() endmacro (sources_hook) macro (fortran_hook) diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index 864d77d2c..0bfcff618 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -125,6 +125,10 @@ list (APPEND EXAMPLE_SOURCE_FILES examples/sim_poly2p_comp_reorder.cpp examples/sim_poly2p_incomp_reorder.cpp examples/wells_example.cpp + tutorials/tutorial1.cpp + tutorials/tutorial2.cpp + tutorials/tutorial3.cpp + tutorials/tutorial4.cpp ) # programs listed here will not only be compiled, but also marked for