1# SPDX-License-Identifier: Apache-2.0 2# 3# Copyright (c) 2024, Space Cubics, LLC. 4 5find_program(CPPTESTSCAN cpptestscan REQUIRED) 6message(STATUS "Found SCA: Parasoft C/C++test (${CPPTESTSCAN})") 7 8set(output_dir ${CMAKE_BINARY_DIR}/sca/cpptest) 9file(MAKE_DIRECTORY ${output_dir}) 10 11set(output_file ${output_dir}/cpptestscan.bdf) 12set(output_arg --cpptestscanOutputFile=${output_file}) 13 14set(CMAKE_C_COMPILER_LAUNCHER ${CPPTESTSCAN} ${output_arg} CACHE INTERNAL "") 15set(CMAKE_CXX_COMPILER_LAUNCHER ${CPPTESTSCAN} ${output_arg} CACHE INTERNAL "") 16