2017-12-06 05:01:48 -06:00
|
|
|
# Build system for opm-simulators tutorials
|
|
|
|
# Note: This is independent of the main opm-simulators build system.
|
|
|
|
# It assumes an opm-simulators library is installed at the system level.
|
2014-06-23 03:48:32 -05:00
|
|
|
|
2017-12-06 05:01:48 -06:00
|
|
|
project(opm-simulators-tutorials)
|
2014-06-23 03:48:32 -05:00
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
find_package(opm-core REQUIRED)
|
2017-12-06 05:01:48 -06:00
|
|
|
find_package(opm-simulators REQUIRED)
|
2014-06-23 03:48:32 -05:00
|
|
|
|
2017-12-06 05:01:48 -06:00
|
|
|
include_directories(${opm-core_INCLUDE_DIRS} ${opm-simulators_INCLUDE_DIRS})
|
|
|
|
add_definitions(${opm-core_DEFINITIONS} ${opm-simulators_DEFINITIONS})
|
2014-06-23 03:48:32 -05:00
|
|
|
|
|
|
|
foreach(tut 1 2 3 4)
|
|
|
|
add_executable(tutorial${tut} tutorial${tut}.cpp)
|
2017-12-06 05:01:48 -06:00
|
|
|
target_link_libraries(tutorial${tut} ${opm-core_LIBRARIES}
|
|
|
|
${opm-simulators_LIBRARIES})
|
2014-06-23 03:48:32 -05:00
|
|
|
endforeach()
|