From 430b96b8157c3712018f12fb733f75990c25c394 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 23 Jun 2014 10:48:32 +0200 Subject: [PATCH] added: build system for tutorials --- tutorials/CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tutorials/CMakeLists.txt diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt new file mode 100644 index 000000000..ac3baa549 --- /dev/null +++ b/tutorials/CMakeLists.txt @@ -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()