summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/VS10Project/SourceGroupCMakeLists-check.cmake
blob: 616f38b0747da1bfba65f88856fd5e2abfe1f2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
set(vcFiltersFile "${RunCMake_TEST_BINARY_DIR}/foo.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}" CMakeListsSourceGroup)