Skip to content
Snippets Groups Projects

Add include directories to library target

1 file
+ 8
4
Compare changes
  • Side-by-side
  • Inline
+ 11
1
@@ -15,12 +15,22 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules"
#include the dune macros
include(DuneMacros)
if(dune-common_VERSION VERSION_GREATER_EQUAL 2.11)
# deactivate global include-directories
dune_policy(SET DP_DEFAULT_INCLUDE_DIRS NEW)
endif()
# start a dune project with information from dune.module
dune_project()
dune_add_library(dunefoamgrid INTERFACE
EXPORT_NAME FoamGrid
EXPORT_NAME FoamGrid
LINK_LIBRARIES Dune::Grid)
if(dune-common_VERSION VERSION_GREATER_EQUAL 2.11)
# set include directories for dunefoamgrid library
dune_default_include_directories(dunefoamgrid INTERFACE)
endif()
add_subdirectory(dune)
add_subdirectory(doc)
add_subdirectory(cmake/modules)
Loading