...
 
# find all required packages
FIND_PACKAGE (HDF5 REQUIRED)
if(NOT HDF5_IS_PARALLEL)
message(SEND_ERROR "Parallel HDF5 must be installed!")
endif()
add_definitions(-DHDF5_PARALLEL)
FIND_PACKAGE (FFTW REQUIRED)
FIND_PACKAGE (SuperLU REQUIRED)
FIND_PACKAGE (MPI REQUIRED)
find_package (yaml-cpp 0.5.2 REQUIRED)
FIND_PACKAGE (yaml-cpp 0.5.2 REQUIRED)
FIND_PACKAGE (muparser REQUIRED)
FIND_PACKAGE (METIS)
FIND_PACKAGE (ParMETIS)
include_directories(${FFTW_INCLUDES}
${HDF5_INCLUDE_DIRS}
include_directories(${HDF5_INCLUDE_DIRS}
${YAML_CPP_INCLUDE_DIR})
list (APPEND DUNE_LIBS
......@@ -23,6 +18,18 @@ list (APPEND DUNE_LIBS
${HDF5_LIBRARIES}
${YAML_CPP_LIBRARIES}
muparser::muparser)
if (dune-randomfield_FOUND)
if(NOT HDF5_IS_PARALLEL)
message(SEND_ERROR "Parallel HDF5 must be installed!")
endif()
add_definitions(-DHDF5_PARALLEL)
FIND_PACKAGE (FFTW REQUIRED)
include_directories(${FFTW_INCLUDES})
list (APPEND DUNE_LIBS ${FFTW_LIBRARIES})
endif()
MESSAGE(STATUS "DUNE Libraries: ${DUNE_LIBS}")
# Add DORiE testing functions
......
......@@ -7,5 +7,5 @@ Module: dorie
Version: 1.2.0-pre
Maintainer: dorieteam@iup.uni-heidelberg.de
#depending on
Depends: dune-pdelab dune-uggrid dune-randomfield
Suggests: dune-testtools
\ No newline at end of file
Depends: dune-pdelab dune-uggrid
Suggests: dune-testtools dune-randomfield
\ No newline at end of file
add_executable("dorie-rfg" dorie-rfg.cc)
dune_target_link_libraries(dorie-rfg ${DUNE_LIBS})
\ No newline at end of file
if (dune-randomfield_FOUND)
add_executable("dorie-rfg" dorie-rfg.cc)
dune_target_link_libraries(dorie-rfg ${DUNE_LIBS})
endif()
\ No newline at end of file
......@@ -81,4 +81,6 @@ add_dependencies(test_run_ode prepare_testing)
# dune excludes test targets from 'make all'; undo that here where applicable
set_property(TARGET dorie PROPERTY EXCLUDE_FROM_ALL 0)
set_property(TARGET dorie-rfg PROPERTY EXCLUDE_FROM_ALL 0)
if (dune-randomfield_FOUND)
set_property(TARGET dorie-rfg PROPERTY EXCLUDE_FROM_ALL 0)
endif()