# ========================================================================== # Copyright (C) 2022 Intel Corporation # # SPDX-License-Identifier: MIT # ========================================================================== # Build system for various utility functions used in testing. enable_language(CXX) file(GLOB SOURCES *.cpp) add_library(tool_common STATIC ${SOURCES}) qpl_set_common_target_settings(tool_common) target_include_directories(tool_common PUBLIC $ PRIVATE $ PRIVATE $ #todo remove dependency PRIVATE $ #todo remove dependency PRIVATE $ PRIVATE $) #todo remove dependency target_link_libraries(tool_common PRIVATE "$<$:stdc++fs>" PUBLIC tool_hw_dispatcher) # iaa_features_checks.hpp depends on implementations from tool_hw_dispatcher target_compile_options(tool_common PRIVATE $<$:> PRIVATE $<$:> PRIVATE $<$:-m64> PRIVATE $<$:/wd4996>) if (WIN32) target_compile_definitions(tool_common PUBLIC QPL_LIB DEBUG _MBCS _LIB _LIB_BUILD _ARCH_EM64T _HAS_STD_BYTE=0 _SILENCE_CXX17_STRSTREAM_DEPRECATION_WARNING=1 _ENABLE_EXTENDED_ALIGNED_STORAGE) modify_standard_language_flag(LANGUAGE_NAME "CXX" FLAG_NAME "/EH" NEW_FLAG_VALUE "a") else () target_compile_definitions(tool_common PUBLIC QPL_LIB _MBCS _LIB _LIB_BUILD _ARCH_EM64T unix Linux LINUX32E _linux32e _LINUX32E) endif ()