Added a test for building an MPI project. Building for the MPI and C API tests is now also disabled by default.

This commit is contained in:
jpekkila
2019-08-05 18:26:12 +03:00
parent 66fa346118
commit da76fca0dc
4 changed files with 70 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
##############################################
## CMakeLists.txt for the MPI test ##
##############################################
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
find_package(MPI REQUIRED)
add_executable(mpitest main.c)
target_include_directories(mpitest PRIVATE ${MPI_C_INCLUDE_PATH})
target_link_libraries(mpitest PRIVATE ${MPI_C_LIBRARIES} astaroth_core)