|
|
@@ -50,17 +50,18 @@ macro(parseGlobalSections arg_out_pre arg_out_post testName)
|
|
|
endmacro()
|
|
|
|
|
|
|
|
|
-macro(getFirstProject arg_out_first_project testName)
|
|
|
- set(${arg_out_first_project} "")
|
|
|
- set(sln "${RunCMake_TEST_BINARY_DIR}/${testName}.sln")
|
|
|
+macro(getProjectNames arg_out_projects)
|
|
|
+ set(${arg_out_projects} "")
|
|
|
+ set(sln "${RunCMake_TEST_BINARY_DIR}/${test}.sln")
|
|
|
if(NOT EXISTS "${sln}")
|
|
|
error("Expected solution file ${sln} does not exist")
|
|
|
endif()
|
|
|
file(STRINGS "${sln}" project_lines REGEX "^Project\\(")
|
|
|
- list(GET project_lines 0 first_project)
|
|
|
- string(REGEX REPLACE ".* = \"" "" first_project "${first_project}")
|
|
|
- string(REGEX REPLACE "\", .*" "" first_project "${first_project}")
|
|
|
- set(${arg_out_first_project} "${first_project}")
|
|
|
+ foreach(project_line IN LISTS project_lines)
|
|
|
+ string(REGEX REPLACE ".* = \"" "" project_line "${project_line}")
|
|
|
+ string(REGEX REPLACE "\", .*" "" project_line "${project_line}")
|
|
|
+ list(APPEND ${arg_out_projects} "${project_line}")
|
|
|
+ endforeach()
|
|
|
endmacro()
|
|
|
|
|
|
|