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

@@ -23,7 +23,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
option(BUILD_DEBUG "Builds the program with extensive error checking" OFF)
option(BUILD_STANDALONE "Builds the standalone Astaroth" ON)
option(BUILD_RT_VISUALIZATION "Builds the module for real-time visualization using SDL2" OFF)
option(BUILD_C_API_TEST "Builds a C program to test whether the API is conformant" ON)
option(BUILD_C_API_TEST "Builds a C program to test whether the API is conformant" OFF)
option(BUILD_MPI_TEST "Builds a C program to test whether MPI works" OFF)
option(DOUBLE_PRECISION "Generates double precision code" OFF)
option(MULTIGPU_ENABLED "If enabled, uses all the available GPUs" ON)
option(ALTER_CONF "If enabled, loads astaroth.conf from the build directory" OFF)
@@ -60,3 +61,7 @@ endif ()
if (BUILD_C_API_TEST)
add_subdirectory(src/ctest)
endif ()
if (BUILD_MPI_TEST)
add_subdirectory(src/mpitest)
endif ()