1project(phastaIO) 2enable_language(CXX) 3 4if(NOT PHASTA_SKIP_MPI_CHECK) 5find_package(MPI REQUIRED) 6endif() 7include_directories(${MPI_C_INCLUDE_PATH}) 8# collect all the source files 9include(FortranCInterface) 10FortranCInterface_VERIFY(CXX) 11FortranCInterface_Header(FCMangle.h) 12include_directories("${phastaIO_BINARY_DIR}") 13add_definitions(-DMPICH_SKIP_MPICXX) 14add_definitions(-DOMPI_SKIP_MPICXX=1) 15set(SRC_FILES phiotmrc.cc phastaIO.cc) 16 17ADD_LIBRARY(phastaIO ${SRC_FILES}) 18target_link_libraries(phastaIO ${MPI_C_LIBRARIES}) 19