################################################################################ # Copyright (C) 2018-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH # # # # This software is distributed under the terms of the # # GNU Lesser General Public Licence (LGPL) version 3, # # copied verbatim in the file "LICENSE" # ################################################################################ set(exe_prefix "fairmq-ex") set(script_prefix "fairmq-start-ex") set(test_script_prefix "test-ex") set(testsuite "Example") set(transports "zeromq" "shmem") # Environment for every example test (directory scope, so the subdirectories # see it too) set(env_mods) if(ENABLE_SANITIZER_LEAK AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.22) get_filename_component(lsan_supps "${CMAKE_SOURCE_DIR}/test/leak_sanitizer_suppressions.txt" ABSOLUTE) list(APPEND env_mods "LSAN_OPTIONS=set:suppressions=${lsan_supps}") endif() # Run the example tests against an alternative runtime library directory as # well (see test/CMakeLists.txt). The test scripts only launch instrumented # binaries (bash itself does not link libstdc++). Note: unlike the # testsuites, the example binaries get no locale-cache warmup -- their # main() comes from the installed public header fairmq/runDevice.h. if(FAIRMQ_TEST_LD_LIBRARY_PATH) list(APPEND env_mods "LD_LIBRARY_PATH=path_list_prepend:${FAIRMQ_TEST_LD_LIBRARY_PATH}") endif() # fairmq_install_configured( DESTINATION