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