doctest

FORK: The fastest feature-rich C++11/14/17/20 single-header testing framework
git clone https://git.neptards.moe/neptards/doctest.git
Log | Files | Refs | README

CMakeLists.txt (276B)


      1 find_package(MPI COMPONENTS CXX)
      2 if(MPI_FOUND)
      3     add_executable(test_mpi main.cpp mpi.cpp)
      4     target_link_libraries(test_mpi doctest ${CMAKE_THREAD_LIBS_INIT} MPI::MPI_CXX)
      5 
      6     doctest_add_test(NO_OUTPUT NAME test_mpi COMMAND mpirun -np 3 $<TARGET_FILE:test_mpi>)
      7 endif()