From 78118e21e34ad3008d6272cf8a0b4397ba0108fb Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Fri, 2 Aug 2013 20:24:33 +0200 Subject: [PATCH] Support compiling files that are in the attic Since these files are not actively maintained, we don't assume that the project actually has any, nor are they part of the default build. --- cmake/Modules/OpmFiles.cmake | 3 +++ cmake/Modules/OpmLibMain.cmake | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/cmake/Modules/OpmFiles.cmake b/cmake/Modules/OpmFiles.cmake index fd4e126e0..7da13dffc 100644 --- a/cmake/Modules/OpmFiles.cmake +++ b/cmake/Modules/OpmFiles.cmake @@ -65,6 +65,9 @@ macro (opm_sources opm) foreach (_file IN LISTS PROGRAM_SOURCE_FILES) list (APPEND examples_SOURCES_DIST ${PROJECT_SOURCE_DIR}/${_file}) endforeach (_file) + foreach (_file IN LISTS ATTIC_FILES) + list (APPEND attic_SOURCES ${PROJECT_SOURCE_DIR}/${_file}) + endforeach (_file) # identify pre-compile header; if the project is called opm-foobar, # then it should be in opm/foobar/opm-foobar-pch.hpp diff --git a/cmake/Modules/OpmLibMain.cmake b/cmake/Modules/OpmLibMain.cmake index 9f208fe58..ad2e4d5d0 100644 --- a/cmake/Modules/OpmLibMain.cmake +++ b/cmake/Modules/OpmLibMain.cmake @@ -179,6 +179,11 @@ if (BUILD_EXAMPLES) opm_compile_satellites (${project} examples "" "") endif (BUILD_EXAMPLES) +# attic are programs which are not quite abandoned yet; however, they +# are not actively maintained, so they should not be a part of the +# default compile +opm_compile_satellites (${project} attic EXCLUDE_FROM_ALL "") + # infrastructure for testing enable_testing () include (CTest)