xref: /phasta/phastaIO/CMakeLists.txt (revision f42e0444da478b8804248904e7be4eb4355d183d)
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 phiostats.c phiompi.c)
16
17ADD_LIBRARY(phastaIO ${SRC_FILES})
18target_link_libraries(phastaIO ${MPI_C_LIBRARIES})
19