17
tutorials/CMakeLists.txt
Normal file
17
tutorials/CMakeLists.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
# Build system for opm-core tutorials
|
||||
# Note: This is independent of the main opm-core build system.
|
||||
# It assumes an opm-core library is installed at the system level.
|
||||
|
||||
project(opm-core-tutorials)
|
||||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
find_package(opm-core REQUIRED)
|
||||
|
||||
include_directories(${opm-core_INCLUDE_DIRS})
|
||||
add_definitions(${opm-core_DEFINITIONS})
|
||||
|
||||
foreach(tut 1 2 3 4)
|
||||
add_executable(tutorial${tut} tutorial${tut}.cpp)
|
||||
target_link_libraries(tutorial${tut} ${opm-core_LIBRARIES})
|
||||
endforeach()
|
||||
@@ -31,7 +31,9 @@
|
||||
/// \snippet tutorial1.cpp including headers
|
||||
|
||||
/// \internal [including headers]
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <opm/core/grid.h>
|
||||
#include <opm/core/grid/GridManager.hpp>
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
/// We solve the flow equations for a Cartesian grid and we set the source term
|
||||
/// \f$q\f$ be zero except at the left-lower and right-upper corner, where it is equal
|
||||
/// with opposite sign (inflow equal to outflow).
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <opm/core/grid.h>
|
||||
#include <opm/core/grid/GridManager.hpp>
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/// \endcond
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/// \endcond
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
||||
Reference in New Issue
Block a user