You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
590 B
19 lines
590 B
2 years ago
|
set(tgt_project "${RunCMake_TEST_BINARY_DIR}/tgt.vcxproj")
|
||
|
if (NOT EXISTS "${tgt_project}")
|
||
|
set(RunCMake_TEST_FAILED "Generated project file does not exist:\n ${tgt_project}\n")
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
file(STRINGS ${tgt_project} tgt_projects_strings REGEX ForcedIncludeFiles)
|
||
|
|
||
|
foreach(line IN LISTS tgt_projects_strings)
|
||
|
if (line MATCHES "<ForcedIncludeFiles>force_include_1.h;force_include_2.h</ForcedIncludeFiles>")
|
||
|
set(have_FI ON)
|
||
|
endif()
|
||
|
endforeach()
|
||
|
|
||
|
if (NOT have_FI)
|
||
|
set(RunCMake_TEST_FAILED "Generated project does not have expected ForcedIncludeFiles.")
|
||
|
return()
|
||
|
endif()
|