Skip to content

Commit

Permalink
added: build system for tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
akva2 committed Jun 23, 2014
1 parent e137eb3 commit d2b47b2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit d2b47b2

Please sign in to comment.