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) 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@) 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()