blob: bfa9a676778ff1df53c4b8d7d4e1feebab225af5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
function(find_source_group LINES NAME)
set(foundSourceGroupLink 0)
foreach(line IN LISTS LINES)
if(line MATCHES "<Link>${NAME}</Link>")
set(foundSourceGroupLink 1)
endif()
endforeach()
if(NOT foundSourceGroupLink)
set(RunCMake_TEST_FAILED "Source group link for ${NAME} not found." PARENT_SCOPE)
set(SOURCE_GROUP_FOUND 0 PARENT_SCOPE)
return()
endif()
set(SOURCE_GROUP_FOUND 1 PARENT_SCOPE)
endfunction()
|