1 ADD_TEST( 2 NAME custom 3 COMMAND $<TARGET_FILE:ucode> -L $<TARGET_FILE_DIR:fs_lib>/*.so -S run_tests.uc 4 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 5 ) 6 SET_PROPERTY(TEST custom APPEND PROPERTY ENVIRONMENT 7 "UCODE_BIN=valgrind --quiet --leak-check=full $<TARGET_FILE:ucode>" 8 "UCODE_LIB=${CMAKE_BINARY_DIR}" 9 ) 10 11 IF(CMAKE_C_COMPILER_ID STREQUAL "Clang") 12 ADD_TEST( 13 NAME custom-san 14 COMMAND $<TARGET_FILE:ucode> -L $<TARGET_FILE_DIR:fs_lib>/*.so -S run_tests.uc 15 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 16 ) 17 18 SET_PROPERTY(TEST custom-san APPEND PROPERTY ENVIRONMENT 19 "UCODE_BIN=$<TARGET_FILE:ucode-san>" 20 "UCODE_LIB=${CMAKE_BINARY_DIR}" 21 ) 22 ENDIF()
This page was automatically generated by LXR 0.3.1. • OpenWrt