AMDiSUse.cmake 644 Bytes
Newer Older
1
link_directories(${AMDiS_LIBRARY_DIRS})
2
include_directories(${AMDiS_INCLUDE_DIRS})
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#load mpi-compiler for use with parmetis and parallel_domain
if(${AMDiS_HAS_PARALLEL_DOMAIN})
	if(NOT ${AMDiS_NEED_PARMETIS})
	  message(SEND_ERROR "parallel domain needs parmetis, but AMDiS was not compiled with parmetis support. There's something really odd..")
	else()
	  find_package(MPI REQUIRED)
	  if(MPI_FOUND)
	    INCLUDE(CMakeForceCompiler)
	    CMAKE_FORCE_CXX_COMPILER(mpicxx "The MPI C++ compiler")
	    CMAKE_FORCE_C_COMPILER(mpicc "The MPI C Compiler")
	  endif(MPI_FOUND)
	endif(NOT ${AMDiS_NEED_PARMETIS})
endif(${AMDiS_HAS_PARALLEL_DOMAIN})