From 6b71a882e50f8179a0cebcd4f2295a664d0865f3 Mon Sep 17 00:00:00 2001 From: Jonathan Youett <youett@math.fu-berlin.de> Date: Mon, 13 Oct 2014 15:02:04 +0200 Subject: [PATCH] Add solvers to CMake file and add the neccessary compile flags --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 24d7e4d..228167d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,4 +14,15 @@ dune_project() add_subdirectory("dune") add_subdirectory("m4") +set(programs linelast viscoelast nonlinelast) +foreach(_program ${programs}) + add_executable(${_program} ${_program}.cc) + add_dune_amiramesh_flags(${_program}) + add_dune_ipopt_flags(${_program}) + add_dune_ug_flags(${_program}) + add_dune_psurface_flags(${_program}) + target_compile_options(${_program} PRIVATE "-fpermissive") +endforeach() + + finalize_dune_project(GENERATE_CONFIG_H_CMAKE) -- GitLab