AMDiSConfig.cmake.in 1.13 KB
Newer Older
1
2
3
4
5
6
7
8
set(AMDiS_INCLUDE_DIR ${AMDiS_DIR}/include ${AMDiS_DIR}/mtl4)
set(AMDiS_LIBRARIES amdis compositeFEM)
set(AMDiS_LIBRARY_DIRS ${AMDiS_DIR}/lib)
find_package(Boost 1.42 REQUIRED)
if(Boost_FOUND)
	set(AMDiS_LIBRARIES ${AMDiS_LIBRARIES} boost_system boost_iostreams)
	set(AMDiS_LIBRARY_DIRS ${AMDiS_LIBRARY_DIRS} ${Boost_INCLUDE_DIR})
endif(Boost_FOUND)
Naumann, Andreas's avatar
Naumann, Andreas committed
9
10
11
12
13
set(AMDiS_NEED_PARMETIS @ENABLE_PARMETIS@)
set(AMDiS_HAS_PARALLEL_DOMAIN @ENABLE_PARALLEL_DOMAIN@)
set(AMDiS_NEED_UMFPACK @ENABLE_UMFPACK@)
set(AMDiS_NEED_MKL @ENABLE_MKL@)
set(AMDiS_NEED_DUNE @ENABLE_DUNE@)
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set(AMDiS_USE_FILE ${AMDiS_DIR}/AMDiSUse.cmake)
message("find-components: ${AMDiS_FIND_COMPONENTS}")

if(${AMDiS_FIND_COMPONENTS} MATCHES umfpack )
	if( ${AMDiS_NEED_UMFPACK} )
	  set(AMDiS_LIBRARIES ${AMDiS_LIBRARIES} umfpack)
	else()
	  set( AMDiS_umfpack_FOUND FALSE)
	  message(SEND_ERROR "the selected amdis was not compiled with umfpack")
	endif()
endif()

if( ${AMDiS_NEED_PARMETIS} )
  set(AMDiS_LIBRARIES ${AMDiS_LIBRARIES} parmetis metis)
endif()

if(${AMDiS_FIND_COMPONENTS} MATCHES parmetis AND NOT ${AMDiS_NEED_PARMETIS})
	message(SEND_ERROR "amdis was not compiled with parmetis")
endif()