add imported tutorials to build system

This commit is contained in:
Arne Morten Kvarving 2017-12-06 12:06:49 +01:00
parent b5b6a8ad97
commit efce6ef3da
2 changed files with 11 additions and 0 deletions

View File

@ -85,6 +85,13 @@ macro (prereqs_hook)
endmacro (prereqs_hook) endmacro (prereqs_hook)
macro (sources_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) endmacro (sources_hook)
macro (fortran_hook) macro (fortran_hook)

View File

@ -125,6 +125,10 @@ list (APPEND EXAMPLE_SOURCE_FILES
examples/sim_poly2p_comp_reorder.cpp examples/sim_poly2p_comp_reorder.cpp
examples/sim_poly2p_incomp_reorder.cpp examples/sim_poly2p_incomp_reorder.cpp
examples/wells_example.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 # programs listed here will not only be compiled, but also marked for