DorieMacros.cmake 550 Bytes
Newer Older
Dion Haefner's avatar
Dion Haefner committed
1 2 3
# File for module specific CMake tests.

# find all required packages
4 5 6
FIND_PACKAGE (HDF5 REQUIRED)
if(NOT HDF5_IS_PARALLEL)
	message(SEND_ERROR "Parallel HDF5 must be installed!")
7
endif()
8 9
add_definitions(-DHDF5_PARALLEL)

Dion Haefner's avatar
Dion Haefner committed
10 11 12
FIND_PACKAGE (FFTW REQUIRED)
FIND_PACKAGE (SuperLU REQUIRED)
FIND_PACKAGE (MPI REQUIRED)
Dion Haefner's avatar
Dion Haefner committed
13

Dion Haefner's avatar
merge  
Dion Haefner committed
14 15 16
FIND_PACKAGE (METIS)
FIND_PACKAGE (ParMETIS)

Dion Haefner's avatar
Dion Haefner committed
17 18 19 20 21
include_directories(${FFTW_INCLUDES})
include_directories(${HDF5_INCLUDE_DIRS})

set(DUNE_LIBS ${DUNE_LIBS} ${FFTW_LIBRARIES} ${HDF5_LIBRARIES})
MESSAGE(STATUS "DUNE Libraries: ${DUNE_LIBS}")