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:
12
src/mpitest/CMakeLists.txt
Normal file
12
src/mpitest/CMakeLists.txt
Normal 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)
|
||||
Reference in New Issue
Block a user