Bei neuen Changes auf Main sollte folgendes funktionieren:
rm -rf build && cmake -B build -S . # new Fresh Build Dir (yes, the -S . Flag can also be ommited)
cmake --build build --target all # Build Tests & Examples
./build/test_GraphLib # Run The Tests, all should Pass
Example Output:
$ rm -rf build/ && cmake -B build -S .
-- The CXX compiler identification is GNU 13.3.0
...
-- Build files have been written to: /home/meiko/repos/oop-projekt-384/build
$ cmake --build build --target all
[ 2%] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 5%] Linking CXX static library ../../../lib/libgtest.a
[ 5%] Built target gtest
...
[ 11%] Built target gtest_main
...
[ 41%] Built target test_GraphLib
...
[ 47%] Built target gmock
...
[ 52%] Built target gmock_main
...
[ 58%] Built target example_Tarjan
...
[ 64%] Built target example_1
...
[ 70%] Built target example_2
...
[ 76%] Built target example_BFS
...
[ 82%] Built target example_DFS
...
[ 88%] Built target example_Kruskal
...
[ 94%] Built target example_Prim
...
[100%] Built target example_Dijkstra
[100%] Built target examples
$ ./build/test_GraphLib
Running main() from /home/meiko/repos/oop-projekt-384/build/_deps/googletest-src/googletest/src/gtest_main.cc
[==========] Running 56 tests from 12 test suites.
[----------] Global test environment set-up.
...
[----------] Global test environment tear-down
[==========] 56 tests from 12 test suites ran. (2 ms total)
[ PASSED ] 56 tests.