From b5b6a8ad97491a62c67f07cacf742eaba010c11b Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 6 Dec 2017 12:01:48 +0100 Subject: [PATCH] adjust separate build system for tutorials --- tutorials/CMakeLists.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt index ac3baa549..09df476bb 100644 --- a/tutorials/CMakeLists.txt +++ b/tutorials/CMakeLists.txt @@ -1,17 +1,19 @@ -# 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. +# 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. -project(opm-core-tutorials) +project(opm-simulators-tutorials) cmake_minimum_required(VERSION 2.8) find_package(opm-core REQUIRED) +find_package(opm-simulators REQUIRED) -include_directories(${opm-core_INCLUDE_DIRS}) -add_definitions(${opm-core_DEFINITIONS}) +include_directories(${opm-core_INCLUDE_DIRS} ${opm-simulators_INCLUDE_DIRS}) +add_definitions(${opm-core_DEFINITIONS} ${opm-simulators_DEFINITIONS}) foreach(tut 1 2 3 4) add_executable(tutorial${tut} tutorial${tut}.cpp) - target_link_libraries(tutorial${tut} ${opm-core_LIBRARIES}) + target_link_libraries(tutorial${tut} ${opm-core_LIBRARIES} + ${opm-simulators_LIBRARIES}) endforeach()