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