8b97c70df8
* Update examples to support standalone builds * Tweak to ubuntu-focal-external workflow - disable PAPI * ubuntu focal external workflow update - GCC 11 - Test static libgcc + static libstdcxx + strip - ubuntu-toolchain-r/test * Improve build-release.sh - command line args for lto, strip, perfetto-tools, static-libgcc, static-libstdcxx, hidden-visibility, max-threads, parallel * Update VERSION to 1.0.1 * Fixes to LTO build * Updates to ubuntu-focal-external workflow * build-release.sh update - enable static libstdcxx by default * disable python + static libstdcxx * ubuntu-focal-external updates * build-release.sh disable static libstdcxx by default * cmake-format
22 lines
582 B
CMake
22 lines
582 B
CMake
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
|
|
|
project(omnitrace-mpi-example LANGUAGES CXX)
|
|
|
|
find_package(MPI)
|
|
if(NOT MPI_FOUND)
|
|
message(AUTHOR_WARNING "MPI could not be found. Cannot build omnitrace-mpi target")
|
|
return()
|
|
endif()
|
|
|
|
add_executable(mpi-example mpi.cpp)
|
|
|
|
if(TARGET omnitrace::omnitrace-compile-options)
|
|
target_link_libraries(mpi-example PRIVATE omnitrace::omnitrace-compile-options)
|
|
endif()
|
|
|
|
target_link_libraries(mpi-example PRIVATE MPI::MPI_CXX)
|
|
|
|
if(NOT CMAKE_PROJECT_NAME STREQUAL "omnitrace")
|
|
install(TARGETS mpi-example DESTINATION bin)
|
|
endif()
|