# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. vespa_add_library(vespalib_signalhandler_test_my_shared_library TEST SOURCES my_shared_library.cpp DEPENDS vespalib ) # Don't convert call to jump when returning a value from a function with # a compatible stack. set_source_files_properties(my_shared_library.cpp PROPERTIES COMPILE_OPTIONS "-fno-optimize-sibling-calls") vespa_add_executable(vespalib_signalhandler_test_app TEST SOURCES signalhandler_test.cpp DEPENDS vespalib vespalib_signalhandler_test_my_shared_library GTest::GTest ) vespa_add_test(NAME vespalib_signalhandler_test_app NO_VALGRIND COMMAND vespalib_signalhandler_test_app) vespa_add_executable(vespalib_victim_app SOURCES victim.cpp DEPENDS vespalib )