1set(PROFILE_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) 2set(PROFILE_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) 3 4set(PROFILE_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS}) 5if(NOT COMPILER_RT_STANDALONE_BUILD) 6 list(APPEND PROFILE_TEST_DEPS profile llvm-profdata) 7endif() 8 9configure_lit_site_cfg( 10 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in 11 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg 12 ) 13add_lit_testsuite(check-profile "Running the profile tests" 14 ${CMAKE_CURRENT_BINARY_DIR} 15 DEPENDS ${PROFILE_TEST_DEPS}) 16set_target_properties(check-profile PROPERTIES FOLDER "Profile tests") 17