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.
This commit is contained in:
Roland Kaufmann 2013-08-02 20:24:33 +02:00
parent 522acace31
commit 78118e21e3
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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)