Only include files from the source directory

We want files from the source directory, relative to the source tree,
not everything under the source tree relative to the source sub-dir!
This commit is contained in:
Roland Kaufmann
2013-06-05 15:08:15 +02:00
parent 1e87f575a8
commit 87523c8edb

View File

@@ -53,5 +53,5 @@ list (APPEND PROGRAM_SOURCE_FILES)
# for OPM-material we do not list all headers explicitly. instead we
# glob through the source tree...
file(GLOB_RECURSE TMP RELATIVE "${CMAKE_SOURCE_DIR}/opm" "*.hh")
file(GLOB_RECURSE TMP RELATIVE "${CMAKE_SOURCE_DIR}" "opm/*.hh")
list (APPEND PUBLIC_HEADER_FILES ${TMP})