add_library(intf_pub INTERFACE) target_compile_options(intf_pub INTERFACE -fPIC -fvisibility=hidden -fvisibility-inlines-hidden $<$:-O2> $<$:-O0 -g> $<$:-std=c++11> $<$,$>:-ftrapv -fstack-check> $<$:-pthread -Wfloat-equal -Wshadow -Wformat=2 -Wno-deprecated -Wextra> $,-fstack-protector-strong,-fstack-protector-all> ) target_compile_definitions(intf_pub INTERFACE _GLIBCXX_USE_CXX11_ABI=0 $<$:_FORTIFY_SOURCE=2> ) target_include_directories(intf_pub INTERFACE ${ASCEND_CANN_PACKAGE_PATH}/include) target_link_options(intf_pub INTERFACE $<$,EXECUTABLE>:-pie> $<$:-s> -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack ) target_link_directories(intf_pub INTERFACE ${ASCEND_CANN_PACKAGE_PATH}/lib64)