Skip to content
Snippets Groups Projects
Commit c2c996a9 authored by Angel Santamaria-Navarro's avatar Angel Santamaria-Navarro
Browse files

FIX test/CMakeLists.txt to add new gtest.cpp when its corresponding place is...

FIX test/CMakeLists.txt to add new gtest.cpp when its corresponding place is alphabetically the last one
parent 2c2929a6
No related branches found
No related tags found
1 merge request!193Fix scripts
Pipeline #
This commit is part of merge request !193. Comments created here will be created in the context of that merge request.
...@@ -512,7 +512,12 @@ updateCMakeListsGTest() ...@@ -512,7 +512,12 @@ updateCMakeListsGTest()
fi fi
fi fi
done done
sed -i "\%${sorted[$SET_BEFORE_POS]}%i # $New test\nwolf_add_gtest(gtest_$NAME gtest_$NAME.cpp)\ntarget_link_libraries(gtest_$NAME \$\{PROJECT_NAME\})\n" "${CML_GTEST_PATH}" if [[ $SET_BEFORE_POS < $(( ${#sorted[@]}-1 )) ]] ;
then
sed -i "\%${sorted[$SET_BEFORE_POS]}%i # $New test\nwolf_add_gtest(gtest_$NAME gtest_$NAME.cpp)\ntarget_link_libraries(gtest_$NAME \$\{PROJECT_NAME\})\n" "${CML_GTEST_PATH}"
else
sed -i "\%------- Now Core classes Serialization ----------%i # $New test\nwolf_add_gtest(gtest_$NAME gtest_$NAME.cpp)\ntarget_link_libraries(gtest_$NAME \$\{PROJECT_NAME\})\n" "${CML_GTEST_PATH}"
fi
echo "$CML_GTEST_PATH" echo "$CML_GTEST_PATH"
else else
echo "" echo ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment