DorieMacros.cmake 577 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 7 8
FIND_PACKAGE (HDF5 REQUIRED COMPONENTS C)
if(HDF5_IS_PARALLEL)
	message(STATUS "Parallel HDF5 library found")
	add_definitions(-DHDF5_PARALLEL)
endif()
Dion Haefner's avatar
Dion Haefner committed
9 10 11 12
FIND_PACKAGE (FFTW REQUIRED)
FIND_PACKAGE (SuperLU REQUIRED)
FIND_PACKAGE (MPI REQUIRED)
FIND_PACKAGE (UG REQUIRED)
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}")