summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VS10Project/SourceGroupFileSet-check.cmake
blob: fb2eecc864ea64175d420f23112962497577ea9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cmake_policy(SET CMP0011 NEW)

set(vcFiltersFile "${RunCMake_TEST_BINARY_DIR}/SourceGroupFileSet.vcxproj.filters")
if(NOT EXISTS "${vcFiltersFile}")
  set(RunCMake_TEST_FAILED "Filters file ${vcFiltersFile} does not exist.")
  return()
endif()

file(STRINGS "${vcFiltersFile}" lines)

include(${RunCMake_TEST_SOURCE_DIR}/SourceGroupHelpers.cmake)

find_source_group("${lines}" "Header Files\\SourceGroupFileSet")