Skip to content
Snippets Groups Projects
Commit bc8ddf53 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[cmake] clean up

parent 7d80af61
No related branches found
No related tags found
No related merge requests found
......@@ -32,29 +32,13 @@ dune_project()
dune_enable_all_packages(MODULE_LIBRARIES dunextfunctions
VERBOSE)
# add header of this module for header listing
file(GLOB_RECURSE xtfunctions "${CMAKE_CURRENT_SOURCE_DIR}/dune/*.hh")
set(COMMON_HEADER ${xtfunctions} ${DUNE_HEADERS})
# add header of dependent modules for header listing
foreach(_mod ${ALL_DEPENDENCIES})
file(GLOB_RECURSE HEADER_LIST "${CMAKE_CURRENT_SOURCE_DIR}/../${_mod}/*.hh")
list(APPEND COMMON_HEADER ${HEADER_LIST})
endforeach(_mod DEPENDENCIES)
set_source_files_properties(${COMMON_HEADER} PROPERTIES HEADER_FILE_ONLY 1)
#disable most warnings from dependent modules
#disable most warnings from eigen
if (EIGEN3_FOUND)
add_definitions("-isystem ${EIGEN3_INCLUDE_DIR}")
endif (EIGEN3_FOUND)
foreach(_mod ${ALL_DEPENDENCIES})
dune_module_to_uppercase(_upper_case "${_mod}")
if(${_mod}_INCLUDE_DIRS)
foreach( _idir ${${_mod}_INCLUDE_DIRS} )
add_definitions("-isystem ${_idir}")
endforeach( _idir )
endif(${_mod}_INCLUDE_DIRS)
endforeach(_mod DEPENDENCIES)
add_header_listing()
make_dependent_modules_sys_included()
add_subdirectory(dune)
add_subdirectory(doc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment