We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 510c3c8 commit 37eff63Copy full SHA for 37eff63
1 file changed
CMakeLists.txt
@@ -70,7 +70,7 @@ endfunction(add_spec)
70
71
# Discover Specs
72
function(discover_specs spec_folder)
73
- file(GLOB_RECURSE specs ${spec_folder}/*_spec.cpp)
+ file(GLOB_RECURSE specs RELATIVE ${spec_folder} ${spec_folder}/*_spec.cpp)
74
75
if (${ARGC} GREATER 1)
76
set(output_junit ${ARGV1})
@@ -79,8 +79,11 @@ function(discover_specs spec_folder)
79
endif()
80
81
foreach(spec IN LISTS specs)
82
+ cmake_path(GET spec STEM spec_name)
83
+ cmake_path(GET spec PARENT_PATH spec_folder)
84
+
85
if (${output_junit})
- add_spec(${spec} "--output-junit;${CMAKE_CURRENT_BINARY_DIR}/results/${spec_name}.xml")
86
+ add_spec(${spec} "--output-junit;${CMAKE_CURRENT_BINARY_DIR}/results/${spec_folder}/${spec_name}.xml")
87
else()
88
add_spec(${spec} "")
89
0 commit comments