diff --git a/.clang-tidy b/.clang-tidy index 516f806..b797f75 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -3,7 +3,7 @@ Checks: > WarningsAsErrors: '*' -HeaderFilterRegex: '(Headers/.*|SourceCodes/.*)' +HeaderFilterRegex: '(include/.*|source/.*)' CheckOptions: # Private member variables @@ -24,4 +24,4 @@ CheckOptions: - key: readability-identifier-naming.IgnoreFailures value: false - key: readability-identifier-naming.IgnoreFailedSplit - value: false + value: false \ No newline at end of file diff --git a/.github/workflows/datastructures-algorithms-ci-cd.yaml b/.github/workflows/datastructures-algorithms-ci-cd.yaml index 8fa8cb8..5380c92 100644 --- a/.github/workflows/datastructures-algorithms-ci-cd.yaml +++ b/.github/workflows/datastructures-algorithms-ci-cd.yaml @@ -24,7 +24,7 @@ jobs: - name: Run clang-tidy run: | - find Headers -name '*.h' -o -name '*.hpp' ; find SourceCodes -name '*.cpp' -o -name '*.cc' -o -name '*.cxx' | \ + find include -name '*.h' -o -name '*.hpp' ; find source -name '*.cpp' -o -name '*.cc' -o -name '*.cxx' | \ xargs clang-tidy -p build --warnings-as-errors=* - name: Build diff --git a/.gitignore b/.gitignore index 3cd9e63..c7f410a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .vs/ -Build/ \ No newline at end of file +build/ +install/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index c64ef51..a70dda1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,11 +6,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -# .clang-tidy settp +# .clang-tidy setup find_program(CLANG_TIDY_EXE NAMES "clang-tidy") if(CLANG_TIDY_EXE) message(STATUS "clang-tidy found: ${CLANG_TIDY_EXE}") - set(CMAKE_CXX_CLANG_TIDY + set(CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE}" "--config-file=${CMAKE_SOURCE_DIR}/.clang-tidy" "--extra-arg-before=-Wno-unknown-warning-option" @@ -19,10 +19,10 @@ if(CLANG_TIDY_EXE) ) endif() -include_directories(${CMAKE_SOURCE_DIR}/Headers) +include_directories(${CMAKE_SOURCE_DIR}/include) -add_subdirectory(Headers) -add_subdirectory(SourceCodes) +add_subdirectory(include) +add_subdirectory(source) cmake_policy(SET CMP0135 NEW) include(FetchContent) @@ -36,4 +36,4 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) enable_testing() -add_subdirectory(Tests) \ No newline at end of file +add_subdirectory(test) \ No newline at end of file diff --git a/CMakePresets.json b/CMakePresets.json index 2a68574..f7709c7 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -5,8 +5,8 @@ "name": "windows-base", "hidden": true, "generator": "Ninja", - "binaryDir": "${sourceDir}/Build/build/${presetName}", - "installDir": "${sourceDir}/Build/install/${presetName}", + "binaryDir": "${sourceDir}/build/${presetName}", + "installDir": "${sourceDir}/install/${presetName}", "cacheVariables": { "CMAKE_C_COMPILER": "gcc", "CMAKE_CXX_COMPILER": "g++" diff --git a/README.md b/README.md index 10342c3..1513e74 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ This repository contains a collection of **data structures and algorithms** impl ```plain text datastructures-algorithms -├── Headers # Header Files -├── SourceCodes # Implementation of the solutions -├── Tests # Unit tests for implemented solutions +├── include # Header Files +├── source # Implementation of the solutions +├── test # Unit tests for implemented solutions └── CMakeLists.txt # CMake configuration file ``` diff --git a/SourceCodes/0001_Basics/Node.cc b/SourceCodes/0001_Basics/Node.cc deleted file mode 100644 index cba6cc9..0000000 --- a/SourceCodes/0001_Basics/Node.cc +++ /dev/null @@ -1,6 +0,0 @@ -#include "../Headers/0001_Basics/Node.h" - -Node::Node() -{ - value = 8; -} \ No newline at end of file diff --git a/Headers/0001_Basics/CMakeLists.txt b/include/0001_Basics/CMakeLists.txt similarity index 100% rename from Headers/0001_Basics/CMakeLists.txt rename to include/0001_Basics/CMakeLists.txt diff --git a/Headers/0001_Basics/Node.h b/include/0001_Basics/Node.h similarity index 100% rename from Headers/0001_Basics/Node.h rename to include/0001_Basics/Node.h diff --git a/Headers/0002_Tree/0001_BinarySearchTree.h b/include/0002_Tree/0001_BinarySearchTree.h similarity index 100% rename from Headers/0002_Tree/0001_BinarySearchTree.h rename to include/0002_Tree/0001_BinarySearchTree.h diff --git a/Headers/0002_Tree/CMakeLists.txt b/include/0002_Tree/CMakeLists.txt similarity index 100% rename from Headers/0002_Tree/CMakeLists.txt rename to include/0002_Tree/CMakeLists.txt diff --git a/Headers/0003_Graph/0001_BreadthFirstSearch.h b/include/0003_Graph/0001_BreadthFirstSearch.h similarity index 100% rename from Headers/0003_Graph/0001_BreadthFirstSearch.h rename to include/0003_Graph/0001_BreadthFirstSearch.h diff --git a/Headers/0003_Graph/0002_DepthFirstSearch.h b/include/0003_Graph/0002_DepthFirstSearch.h similarity index 100% rename from Headers/0003_Graph/0002_DepthFirstSearch.h rename to include/0003_Graph/0002_DepthFirstSearch.h diff --git a/Headers/0003_Graph/0003_TopologicalSort.h b/include/0003_Graph/0003_TopologicalSort.h similarity index 100% rename from Headers/0003_Graph/0003_TopologicalSort.h rename to include/0003_Graph/0003_TopologicalSort.h diff --git a/Headers/0003_Graph/0004_StronglyConnectedComponents.h b/include/0003_Graph/0004_StronglyConnectedComponents.h similarity index 100% rename from Headers/0003_Graph/0004_StronglyConnectedComponents.h rename to include/0003_Graph/0004_StronglyConnectedComponents.h diff --git a/Headers/0003_Graph/0005_HamiltonianPathAndCycle.h b/include/0003_Graph/0005_HamiltonianPathAndCycle.h similarity index 100% rename from Headers/0003_Graph/0005_HamiltonianPathAndCycle.h rename to include/0003_Graph/0005_HamiltonianPathAndCycle.h diff --git a/Headers/0003_Graph/0006_EulerianPathAndCircuit.h b/include/0003_Graph/0006_EulerianPathAndCircuit.h similarity index 100% rename from Headers/0003_Graph/0006_EulerianPathAndCircuit.h rename to include/0003_Graph/0006_EulerianPathAndCircuit.h diff --git a/Headers/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.h b/include/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.h similarity index 100% rename from Headers/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.h rename to include/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.h diff --git a/Headers/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.h b/include/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.h similarity index 100% rename from Headers/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.h rename to include/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.h diff --git a/Headers/0003_Graph/0009_SingleSourceShortestPathBellmanFord.h b/include/0003_Graph/0009_SingleSourceShortestPathBellmanFord.h similarity index 100% rename from Headers/0003_Graph/0009_SingleSourceShortestPathBellmanFord.h rename to include/0003_Graph/0009_SingleSourceShortestPathBellmanFord.h diff --git a/Headers/0003_Graph/0010_DirectedAcyclicGraphShortestPath.h b/include/0003_Graph/0010_DirectedAcyclicGraphShortestPath.h similarity index 100% rename from Headers/0003_Graph/0010_DirectedAcyclicGraphShortestPath.h rename to include/0003_Graph/0010_DirectedAcyclicGraphShortestPath.h diff --git a/Headers/0003_Graph/0011_SingleSourceShortestPathDijkstra.h b/include/0003_Graph/0011_SingleSourceShortestPathDijkstra.h similarity index 100% rename from Headers/0003_Graph/0011_SingleSourceShortestPathDijkstra.h rename to include/0003_Graph/0011_SingleSourceShortestPathDijkstra.h diff --git a/Headers/0003_Graph/0012_DifferenceConstraintsShortestPaths.h b/include/0003_Graph/0012_DifferenceConstraintsShortestPaths.h similarity index 100% rename from Headers/0003_Graph/0012_DifferenceConstraintsShortestPaths.h rename to include/0003_Graph/0012_DifferenceConstraintsShortestPaths.h diff --git a/Headers/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.h b/include/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.h similarity index 100% rename from Headers/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.h rename to include/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.h diff --git a/Headers/0003_Graph/0014_AllPairsShortestPathsJohnson.h b/include/0003_Graph/0014_AllPairsShortestPathsJohnson.h similarity index 100% rename from Headers/0003_Graph/0014_AllPairsShortestPathsJohnson.h rename to include/0003_Graph/0014_AllPairsShortestPathsJohnson.h diff --git a/Headers/0003_Graph/0015_MaximumFlowFordFulkerson.h b/include/0003_Graph/0015_MaximumFlowFordFulkerson.h similarity index 100% rename from Headers/0003_Graph/0015_MaximumFlowFordFulkerson.h rename to include/0003_Graph/0015_MaximumFlowFordFulkerson.h diff --git a/Headers/0003_Graph/0016_MaximumFlowEdmondsKarp.h b/include/0003_Graph/0016_MaximumFlowEdmondsKarp.h similarity index 100% rename from Headers/0003_Graph/0016_MaximumFlowEdmondsKarp.h rename to include/0003_Graph/0016_MaximumFlowEdmondsKarp.h diff --git a/Headers/0003_Graph/0017_MaximumBipartiteMatching.h b/include/0003_Graph/0017_MaximumBipartiteMatching.h similarity index 100% rename from Headers/0003_Graph/0017_MaximumBipartiteMatching.h rename to include/0003_Graph/0017_MaximumBipartiteMatching.h diff --git a/Headers/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.h b/include/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.h similarity index 100% rename from Headers/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.h rename to include/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.h diff --git a/Headers/0003_Graph/0019_MaximumFlowRelabelToFront.h b/include/0003_Graph/0019_MaximumFlowRelabelToFront.h similarity index 100% rename from Headers/0003_Graph/0019_MaximumFlowRelabelToFront.h rename to include/0003_Graph/0019_MaximumFlowRelabelToFront.h diff --git a/Headers/0003_Graph/CMakeLists.txt b/include/0003_Graph/CMakeLists.txt similarity index 100% rename from Headers/0003_Graph/CMakeLists.txt rename to include/0003_Graph/CMakeLists.txt diff --git a/Headers/0004_GreedyAlgorithms/CMakeLists.txt b/include/0004_GreedyAlgorithms/CMakeLists.txt similarity index 100% rename from Headers/0004_GreedyAlgorithms/CMakeLists.txt rename to include/0004_GreedyAlgorithms/CMakeLists.txt diff --git a/Headers/0005_DynamicProgramming/CMakeLists.txt b/include/0005_DynamicProgramming/CMakeLists.txt similarity index 100% rename from Headers/0005_DynamicProgramming/CMakeLists.txt rename to include/0005_DynamicProgramming/CMakeLists.txt diff --git a/Headers/0006_BitwiseAlgorithms/CMakeLists.txt b/include/0006_BitwiseAlgorithms/CMakeLists.txt similarity index 100% rename from Headers/0006_BitwiseAlgorithms/CMakeLists.txt rename to include/0006_BitwiseAlgorithms/CMakeLists.txt diff --git a/Headers/CMakeLists.txt b/include/CMakeLists.txt similarity index 100% rename from Headers/CMakeLists.txt rename to include/CMakeLists.txt diff --git a/SourceCodes/0001_Basics/CMakeLists.txt b/source/0001_Basics/CMakeLists.txt similarity index 66% rename from SourceCodes/0001_Basics/CMakeLists.txt rename to source/0001_Basics/CMakeLists.txt index feffaa0..199222f 100644 --- a/SourceCodes/0001_Basics/CMakeLists.txt +++ b/source/0001_Basics/CMakeLists.txt @@ -4,4 +4,4 @@ set(0001BASICS_SOURCES ) # Create a library target -add_library(0001Basics ${0001BASICS_SOURCES}) \ No newline at end of file +add_library(0001BASICS ${0001BASICS_SOURCES}) \ No newline at end of file diff --git a/source/0001_Basics/Node.cc b/source/0001_Basics/Node.cc new file mode 100644 index 0000000..8bbfaa2 --- /dev/null +++ b/source/0001_Basics/Node.cc @@ -0,0 +1,6 @@ +#include "../include/0001_Basics/Node.h" + +Node::Node() +{ + value = 8; +} \ No newline at end of file diff --git a/SourceCodes/0002_Tree/0001_BinarySearchTree.cc b/source/0002_Tree/0001_BinarySearchTree.cc similarity index 99% rename from SourceCodes/0002_Tree/0001_BinarySearchTree.cc rename to source/0002_Tree/0001_BinarySearchTree.cc index 0016c69..bf98b9e 100644 --- a/SourceCodes/0002_Tree/0001_BinarySearchTree.cc +++ b/source/0002_Tree/0001_BinarySearchTree.cc @@ -1,4 +1,4 @@ -#include "../Headers/0002_Tree/0001_BinarySearchTree.h" +#include "../include/0002_Tree/0001_BinarySearchTree.h" #include #include using namespace std; diff --git a/SourceCodes/0002_Tree/CMakeLists.txt b/source/0002_Tree/CMakeLists.txt similarity index 100% rename from SourceCodes/0002_Tree/CMakeLists.txt rename to source/0002_Tree/CMakeLists.txt diff --git a/SourceCodes/0003_Graph/0001_BreadthFirstSearch.cc b/source/0003_Graph/0001_BreadthFirstSearch.cc similarity index 96% rename from SourceCodes/0003_Graph/0001_BreadthFirstSearch.cc rename to source/0003_Graph/0001_BreadthFirstSearch.cc index 0374ba2..3715577 100644 --- a/SourceCodes/0003_Graph/0001_BreadthFirstSearch.cc +++ b/source/0003_Graph/0001_BreadthFirstSearch.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0001_BreadthFirstSearch.h" +#include "../include/0003_Graph/0001_BreadthFirstSearch.h" #include #include #include diff --git a/SourceCodes/0003_Graph/0002_DepthFirstSearch.cc b/source/0003_Graph/0002_DepthFirstSearch.cc similarity index 96% rename from SourceCodes/0003_Graph/0002_DepthFirstSearch.cc rename to source/0003_Graph/0002_DepthFirstSearch.cc index 1bfba58..08e74d4 100644 --- a/SourceCodes/0003_Graph/0002_DepthFirstSearch.cc +++ b/source/0003_Graph/0002_DepthFirstSearch.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0002_DepthFirstSearch.h" +#include "../include/0003_Graph/0002_DepthFirstSearch.h" #include #include #include diff --git a/SourceCodes/0003_Graph/0003_TopologicalSort.cc b/source/0003_Graph/0003_TopologicalSort.cc similarity index 98% rename from SourceCodes/0003_Graph/0003_TopologicalSort.cc rename to source/0003_Graph/0003_TopologicalSort.cc index a266132..29343e1 100644 --- a/SourceCodes/0003_Graph/0003_TopologicalSort.cc +++ b/source/0003_Graph/0003_TopologicalSort.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0003_TopologicalSort.h" +#include "../include/0003_Graph/0003_TopologicalSort.h" #include #include #include diff --git a/SourceCodes/0003_Graph/0004_StronglyConnectedComponents.cc b/source/0003_Graph/0004_StronglyConnectedComponents.cc similarity index 97% rename from SourceCodes/0003_Graph/0004_StronglyConnectedComponents.cc rename to source/0003_Graph/0004_StronglyConnectedComponents.cc index 240726d..6a086e9 100644 --- a/SourceCodes/0003_Graph/0004_StronglyConnectedComponents.cc +++ b/source/0003_Graph/0004_StronglyConnectedComponents.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0004_StronglyConnectedComponents.h" +#include "../include/0003_Graph/0004_StronglyConnectedComponents.h" #include #include #include diff --git a/SourceCodes/0003_Graph/0005_HamiltonianPathAndCycle.cc b/source/0003_Graph/0005_HamiltonianPathAndCycle.cc similarity index 97% rename from SourceCodes/0003_Graph/0005_HamiltonianPathAndCycle.cc rename to source/0003_Graph/0005_HamiltonianPathAndCycle.cc index f60ef91..7ca3ac7 100644 --- a/SourceCodes/0003_Graph/0005_HamiltonianPathAndCycle.cc +++ b/source/0003_Graph/0005_HamiltonianPathAndCycle.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0005_HamiltonianPathAndCycle.h" +#include "../include/0003_Graph/0005_HamiltonianPathAndCycle.h" using namespace std; namespace HamiltonianPathAndCycle diff --git a/SourceCodes/0003_Graph/0006_EulerianPathAndCircuit.cc b/source/0003_Graph/0006_EulerianPathAndCircuit.cc similarity index 98% rename from SourceCodes/0003_Graph/0006_EulerianPathAndCircuit.cc rename to source/0003_Graph/0006_EulerianPathAndCircuit.cc index 3568181..d97ea4f 100644 --- a/SourceCodes/0003_Graph/0006_EulerianPathAndCircuit.cc +++ b/source/0003_Graph/0006_EulerianPathAndCircuit.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0006_EulerianPathAndCircuit.h" +#include "../include/0003_Graph/0006_EulerianPathAndCircuit.h" #include #include using namespace std; diff --git a/SourceCodes/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.cc b/source/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.cc similarity index 97% rename from SourceCodes/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.cc rename to source/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.cc index 0f67e58..280ac16 100644 --- a/SourceCodes/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.cc +++ b/source/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.h" +#include "../include/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.h" #include #include using namespace std; diff --git a/SourceCodes/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.cc b/source/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.cc similarity index 96% rename from SourceCodes/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.cc rename to source/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.cc index ce56ee1..c77da13 100644 --- a/SourceCodes/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.cc +++ b/source/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.h" +#include "../include/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.h" #include using namespace std; diff --git a/SourceCodes/0003_Graph/0009_SingleSourceShortestPathBellmanFord.cc b/source/0003_Graph/0009_SingleSourceShortestPathBellmanFord.cc similarity index 97% rename from SourceCodes/0003_Graph/0009_SingleSourceShortestPathBellmanFord.cc rename to source/0003_Graph/0009_SingleSourceShortestPathBellmanFord.cc index 5d2decf..267b788 100644 --- a/SourceCodes/0003_Graph/0009_SingleSourceShortestPathBellmanFord.cc +++ b/source/0003_Graph/0009_SingleSourceShortestPathBellmanFord.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0009_SingleSourceShortestPathBellmanFord.h" +#include "../include/0003_Graph/0009_SingleSourceShortestPathBellmanFord.h" #include #include using namespace std; diff --git a/SourceCodes/0003_Graph/0010_DirectedAcyclicGraphShortestPath.cc b/source/0003_Graph/0010_DirectedAcyclicGraphShortestPath.cc similarity index 97% rename from SourceCodes/0003_Graph/0010_DirectedAcyclicGraphShortestPath.cc rename to source/0003_Graph/0010_DirectedAcyclicGraphShortestPath.cc index da683fb..74056f6 100644 --- a/SourceCodes/0003_Graph/0010_DirectedAcyclicGraphShortestPath.cc +++ b/source/0003_Graph/0010_DirectedAcyclicGraphShortestPath.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0010_DirectedAcyclicGraphShortestPath.h" +#include "../include/0003_Graph/0010_DirectedAcyclicGraphShortestPath.h" #include #include using namespace std; diff --git a/SourceCodes/0003_Graph/0011_SingleSourceShortestPathDijkstra.cc b/source/0003_Graph/0011_SingleSourceShortestPathDijkstra.cc similarity index 97% rename from SourceCodes/0003_Graph/0011_SingleSourceShortestPathDijkstra.cc rename to source/0003_Graph/0011_SingleSourceShortestPathDijkstra.cc index 138899f..ecad826 100644 --- a/SourceCodes/0003_Graph/0011_SingleSourceShortestPathDijkstra.cc +++ b/source/0003_Graph/0011_SingleSourceShortestPathDijkstra.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0011_SingleSourceShortestPathDijkstra.h" +#include "../include/0003_Graph/0011_SingleSourceShortestPathDijkstra.h" #include #include using namespace std; diff --git a/SourceCodes/0003_Graph/0012_DifferenceConstraintsShortestPaths.cc b/source/0003_Graph/0012_DifferenceConstraintsShortestPaths.cc similarity index 97% rename from SourceCodes/0003_Graph/0012_DifferenceConstraintsShortestPaths.cc rename to source/0003_Graph/0012_DifferenceConstraintsShortestPaths.cc index 20b7784..74ca92d 100644 --- a/SourceCodes/0003_Graph/0012_DifferenceConstraintsShortestPaths.cc +++ b/source/0003_Graph/0012_DifferenceConstraintsShortestPaths.cc @@ -1,4 +1,4 @@ -#include"../Headers/0003_Graph/0012_DifferenceConstraintsShortestPaths.h" +#include"../include/0003_Graph/0012_DifferenceConstraintsShortestPaths.h" #include using namespace std; diff --git a/SourceCodes/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.cc b/source/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.cc similarity index 97% rename from SourceCodes/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.cc rename to source/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.cc index 53a6095..00516de 100644 --- a/SourceCodes/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.cc +++ b/source/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.h" +#include "../include/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.h" #include using namespace std; diff --git a/SourceCodes/0003_Graph/0014_AllPairsShortestPathsJohnson.cc b/source/0003_Graph/0014_AllPairsShortestPathsJohnson.cc similarity index 98% rename from SourceCodes/0003_Graph/0014_AllPairsShortestPathsJohnson.cc rename to source/0003_Graph/0014_AllPairsShortestPathsJohnson.cc index 199cc34..236bf87 100644 --- a/SourceCodes/0003_Graph/0014_AllPairsShortestPathsJohnson.cc +++ b/source/0003_Graph/0014_AllPairsShortestPathsJohnson.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0014_AllPairsShortestPathsJohnson.h" +#include "../include/0003_Graph/0014_AllPairsShortestPathsJohnson.h" #include using namespace std; diff --git a/SourceCodes/0003_Graph/0015_MaximumFlowFordFulkerson.cc b/source/0003_Graph/0015_MaximumFlowFordFulkerson.cc similarity index 98% rename from SourceCodes/0003_Graph/0015_MaximumFlowFordFulkerson.cc rename to source/0003_Graph/0015_MaximumFlowFordFulkerson.cc index b2090c8..6e5a602 100644 --- a/SourceCodes/0003_Graph/0015_MaximumFlowFordFulkerson.cc +++ b/source/0003_Graph/0015_MaximumFlowFordFulkerson.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0015_MaximumFlowFordFulkerson.h" +#include "../include/0003_Graph/0015_MaximumFlowFordFulkerson.h" #include using namespace std; diff --git a/SourceCodes/0003_Graph/0016_MaximumFlowEdmondsKarp.cc b/source/0003_Graph/0016_MaximumFlowEdmondsKarp.cc similarity index 98% rename from SourceCodes/0003_Graph/0016_MaximumFlowEdmondsKarp.cc rename to source/0003_Graph/0016_MaximumFlowEdmondsKarp.cc index f597b9b..dc0988e 100644 --- a/SourceCodes/0003_Graph/0016_MaximumFlowEdmondsKarp.cc +++ b/source/0003_Graph/0016_MaximumFlowEdmondsKarp.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0016_MaximumFlowEdmondsKarp.h" +#include "../include/0003_Graph/0016_MaximumFlowEdmondsKarp.h" #include #include using namespace std; diff --git a/SourceCodes/0003_Graph/0017_MaximumBipartiteMatching.cc b/source/0003_Graph/0017_MaximumBipartiteMatching.cc similarity index 99% rename from SourceCodes/0003_Graph/0017_MaximumBipartiteMatching.cc rename to source/0003_Graph/0017_MaximumBipartiteMatching.cc index 1e873a5..28cbe52 100644 --- a/SourceCodes/0003_Graph/0017_MaximumBipartiteMatching.cc +++ b/source/0003_Graph/0017_MaximumBipartiteMatching.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0017_MaximumBipartiteMatching.h" +#include "../include/0003_Graph/0017_MaximumBipartiteMatching.h" #include #include using namespace std; diff --git a/SourceCodes/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.cc b/source/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.cc similarity index 98% rename from SourceCodes/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.cc rename to source/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.cc index 55fdfbc..8c76b06 100644 --- a/SourceCodes/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.cc +++ b/source/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.h" +#include "../include/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.h" #include using namespace std; diff --git a/SourceCodes/0003_Graph/0019_MaximumFlowRelabelToFront.cc b/source/0003_Graph/0019_MaximumFlowRelabelToFront.cc similarity index 98% rename from SourceCodes/0003_Graph/0019_MaximumFlowRelabelToFront.cc rename to source/0003_Graph/0019_MaximumFlowRelabelToFront.cc index 0f5c20c..5b46b39 100644 --- a/SourceCodes/0003_Graph/0019_MaximumFlowRelabelToFront.cc +++ b/source/0003_Graph/0019_MaximumFlowRelabelToFront.cc @@ -1,4 +1,4 @@ -#include "../Headers/0003_Graph/0019_MaximumFlowRelabelToFront.h" +#include "../include/0003_Graph/0019_MaximumFlowRelabelToFront.h" #include #include using namespace std; diff --git a/SourceCodes/0003_Graph/CMakeLists.txt b/source/0003_Graph/CMakeLists.txt similarity index 100% rename from SourceCodes/0003_Graph/CMakeLists.txt rename to source/0003_Graph/CMakeLists.txt diff --git a/SourceCodes/0004_GreedyAlgorithms/CMakeLists.txt b/source/0004_GreedyAlgorithms/CMakeLists.txt similarity index 100% rename from SourceCodes/0004_GreedyAlgorithms/CMakeLists.txt rename to source/0004_GreedyAlgorithms/CMakeLists.txt diff --git a/SourceCodes/0005_DynamicProgramming/CMakeLists.txt b/source/0005_DynamicProgramming/CMakeLists.txt similarity index 100% rename from SourceCodes/0005_DynamicProgramming/CMakeLists.txt rename to source/0005_DynamicProgramming/CMakeLists.txt diff --git a/SourceCodes/0006_BitwiseAlgorithms/CMakeLists.txt b/source/0006_BitwiseAlgorithms/CMakeLists.txt similarity index 100% rename from SourceCodes/0006_BitwiseAlgorithms/CMakeLists.txt rename to source/0006_BitwiseAlgorithms/CMakeLists.txt diff --git a/SourceCodes/CMakeLists.txt b/source/CMakeLists.txt similarity index 100% rename from SourceCodes/CMakeLists.txt rename to source/CMakeLists.txt diff --git a/Tests/0000_CommonUtilities/CMakeLists.txt b/test/0000_CommonUtilities/CMakeLists.txt similarity index 100% rename from Tests/0000_CommonUtilities/CMakeLists.txt rename to test/0000_CommonUtilities/CMakeLists.txt diff --git a/Tests/0000_CommonUtilities/UnitTestHelper.h b/test/0000_CommonUtilities/UnitTestHelper.h similarity index 100% rename from Tests/0000_CommonUtilities/UnitTestHelper.h rename to test/0000_CommonUtilities/UnitTestHelper.h diff --git a/Tests/0001_Basics/CMakeLists.txt b/test/0001_Basics/CMakeLists.txt similarity index 63% rename from Tests/0001_Basics/CMakeLists.txt rename to test/0001_Basics/CMakeLists.txt index 9daa05d..efa1008 100644 --- a/Tests/0001_Basics/CMakeLists.txt +++ b/test/0001_Basics/CMakeLists.txt @@ -13,19 +13,19 @@ FetchContent_MakeAvailable(googletest) enable_testing() add_executable( - 0001-Basics-Tests + 0001BasicsTests NodeTest.cc) target_link_libraries( - 0001-Basics-Tests + 0001BasicsTests GTest::gtest_main + 0001BASICS ) -target_link_libraries( - 0001-Basics-Tests - 0001Basics -) - +# Add .clang-tidy configuration to this library. +if(CLANG_TIDY_EXE) + set_target_properties(0001BASICS PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}") +endif() include(GoogleTest) -gtest_discover_tests(0001-Basics-Tests DISCOVERY_TIMEOUT 30) \ No newline at end of file +gtest_discover_tests(0001BasicsTests DISCOVERY_TIMEOUT 30) \ No newline at end of file diff --git a/Tests/0001_Basics/NodeTest.cc b/test/0001_Basics/NodeTest.cc similarity index 83% rename from Tests/0001_Basics/NodeTest.cc rename to test/0001_Basics/NodeTest.cc index 0e9b7a7..26c50fe 100644 --- a/Tests/0001_Basics/NodeTest.cc +++ b/test/0001_Basics/NodeTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0001_Basics/Node.h" +#include "../include/0001_Basics/Node.h" // Demonstrate some basic assertions. namespace NodeTesting diff --git a/Tests/0002_Tree/0001_BinarySearchTreeTest.cc b/test/0002_Tree/0001_BinarySearchTreeTest.cc similarity index 97% rename from Tests/0002_Tree/0001_BinarySearchTreeTest.cc rename to test/0002_Tree/0001_BinarySearchTreeTest.cc index 7a73afd..817e43b 100644 --- a/Tests/0002_Tree/0001_BinarySearchTreeTest.cc +++ b/test/0002_Tree/0001_BinarySearchTreeTest.cc @@ -1,6 +1,6 @@ #include #include -#include "../Headers/0002_Tree/0001_BinarySearchTree.h" +#include "../include/0002_Tree/0001_BinarySearchTree.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace BinarySearchTree diff --git a/Tests/0002_Tree/CMakeLists.txt b/test/0002_Tree/CMakeLists.txt similarity index 74% rename from Tests/0002_Tree/CMakeLists.txt rename to test/0002_Tree/CMakeLists.txt index 8d46663..aef689e 100644 --- a/Tests/0002_Tree/CMakeLists.txt +++ b/test/0002_Tree/CMakeLists.txt @@ -5,16 +5,17 @@ FetchContent_Declare( googletest URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip ) + # For Windows: Prevent overriding the parent project's compiler/linker settings set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) - enable_testing() add_executable( 0002TreeTests - 0001_BinarySearchTreeTest.cc) + 0001_BinarySearchTreeTest.cc +) target_link_libraries( 0002TreeTests @@ -22,5 +23,10 @@ target_link_libraries( 0002TREE ) +# Add .clang-tidy configuration to this library. +if(CLANG_TIDY_EXE) + set_target_properties(0002TREE PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}") +endif() + include(GoogleTest) gtest_discover_tests(0002TreeTests DISCOVERY_TIMEOUT 30) \ No newline at end of file diff --git a/Tests/0003_Graph/0001_BreadthFirstSearchTest.cc b/test/0003_Graph/0001_BreadthFirstSearchTest.cc similarity index 95% rename from Tests/0003_Graph/0001_BreadthFirstSearchTest.cc rename to test/0003_Graph/0001_BreadthFirstSearchTest.cc index 26c731f..e918a1c 100644 --- a/Tests/0003_Graph/0001_BreadthFirstSearchTest.cc +++ b/test/0003_Graph/0001_BreadthFirstSearchTest.cc @@ -1,6 +1,6 @@ #include #include -#include "../Headers/0003_Graph/0001_BreadthFirstSearch.h" +#include "../include/0003_Graph/0001_BreadthFirstSearch.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace BreadthFirstSearch diff --git a/Tests/0003_Graph/0002_DepthFirstSearchTest.cc b/test/0003_Graph/0002_DepthFirstSearchTest.cc similarity index 98% rename from Tests/0003_Graph/0002_DepthFirstSearchTest.cc rename to test/0003_Graph/0002_DepthFirstSearchTest.cc index 9bb257b..0825bbf 100644 --- a/Tests/0003_Graph/0002_DepthFirstSearchTest.cc +++ b/test/0003_Graph/0002_DepthFirstSearchTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0002_DepthFirstSearch.h" +#include "../include/0003_Graph/0002_DepthFirstSearch.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace DepthFirstSearch diff --git a/Tests/0003_Graph/0003_TopologicalSortTest.cc b/test/0003_Graph/0003_TopologicalSortTest.cc similarity index 98% rename from Tests/0003_Graph/0003_TopologicalSortTest.cc rename to test/0003_Graph/0003_TopologicalSortTest.cc index 2447951..883af20 100644 --- a/Tests/0003_Graph/0003_TopologicalSortTest.cc +++ b/test/0003_Graph/0003_TopologicalSortTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0003_TopologicalSort.h" +#include "../include/0003_Graph/0003_TopologicalSort.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace TopologicalSort diff --git a/Tests/0003_Graph/0004_StronglyConnectedComponentsTest.cc b/test/0003_Graph/0004_StronglyConnectedComponentsTest.cc similarity index 98% rename from Tests/0003_Graph/0004_StronglyConnectedComponentsTest.cc rename to test/0003_Graph/0004_StronglyConnectedComponentsTest.cc index 0f58496..00513fa 100644 --- a/Tests/0003_Graph/0004_StronglyConnectedComponentsTest.cc +++ b/test/0003_Graph/0004_StronglyConnectedComponentsTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0004_StronglyConnectedComponents.h" +#include "../include/0003_Graph/0004_StronglyConnectedComponents.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace StronglyConnectedComponents diff --git a/Tests/0003_Graph/0005_HamiltonianPathAndCycleTest.cc b/test/0003_Graph/0005_HamiltonianPathAndCycleTest.cc similarity index 93% rename from Tests/0003_Graph/0005_HamiltonianPathAndCycleTest.cc rename to test/0003_Graph/0005_HamiltonianPathAndCycleTest.cc index d46a651..10b3ed5 100644 --- a/Tests/0003_Graph/0005_HamiltonianPathAndCycleTest.cc +++ b/test/0003_Graph/0005_HamiltonianPathAndCycleTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0005_HamiltonianPathAndCycle.h" +#include "../include/0003_Graph/0005_HamiltonianPathAndCycle.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace HamiltonianPathAndCycle diff --git a/Tests/0003_Graph/0006_EulerianPathAndCircuitTest.cc b/test/0003_Graph/0006_EulerianPathAndCircuitTest.cc similarity index 93% rename from Tests/0003_Graph/0006_EulerianPathAndCircuitTest.cc rename to test/0003_Graph/0006_EulerianPathAndCircuitTest.cc index 0edc671..9650b6f 100644 --- a/Tests/0003_Graph/0006_EulerianPathAndCircuitTest.cc +++ b/test/0003_Graph/0006_EulerianPathAndCircuitTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0006_EulerianPathAndCircuit.h" +#include "../include/0003_Graph/0006_EulerianPathAndCircuit.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace EulerianPathAndCircuit diff --git a/Tests/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithmTest.cc b/test/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithmTest.cc similarity index 94% rename from Tests/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithmTest.cc rename to test/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithmTest.cc index c559123..216f14e 100644 --- a/Tests/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithmTest.cc +++ b/test/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithmTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.h" +#include "../include/0003_Graph/0007_MinimumSpanningTreeKruskalAlgorithm.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace MinimumSpanningTreeKruskalAlgorithm diff --git a/Tests/0003_Graph/0008_MinimumSpanningTreePrimAlgorithmTest.cc b/test/0003_Graph/0008_MinimumSpanningTreePrimAlgorithmTest.cc similarity index 94% rename from Tests/0003_Graph/0008_MinimumSpanningTreePrimAlgorithmTest.cc rename to test/0003_Graph/0008_MinimumSpanningTreePrimAlgorithmTest.cc index 2016d04..aa378ac 100644 --- a/Tests/0003_Graph/0008_MinimumSpanningTreePrimAlgorithmTest.cc +++ b/test/0003_Graph/0008_MinimumSpanningTreePrimAlgorithmTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.h" +#include "../include/0003_Graph/0008_MinimumSpanningTreePrimAlgorithm.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace MinimumSpanningTreePrimAlgorithm diff --git a/Tests/0003_Graph/0009_SingleSourceShortestPathBellmanFordTest.cc b/test/0003_Graph/0009_SingleSourceShortestPathBellmanFordTest.cc similarity index 98% rename from Tests/0003_Graph/0009_SingleSourceShortestPathBellmanFordTest.cc rename to test/0003_Graph/0009_SingleSourceShortestPathBellmanFordTest.cc index f6bc452..5561fa6 100644 --- a/Tests/0003_Graph/0009_SingleSourceShortestPathBellmanFordTest.cc +++ b/test/0003_Graph/0009_SingleSourceShortestPathBellmanFordTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0009_SingleSourceShortestPathBellmanFord.h" +#include "../include/0003_Graph/0009_SingleSourceShortestPathBellmanFord.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace SingleSourceShortestPathBellmanFord diff --git a/Tests/0003_Graph/0010_DirectedAcyclicGraphShortestPathTest.cc b/test/0003_Graph/0010_DirectedAcyclicGraphShortestPathTest.cc similarity index 92% rename from Tests/0003_Graph/0010_DirectedAcyclicGraphShortestPathTest.cc rename to test/0003_Graph/0010_DirectedAcyclicGraphShortestPathTest.cc index 3a59445..5f156e4 100644 --- a/Tests/0003_Graph/0010_DirectedAcyclicGraphShortestPathTest.cc +++ b/test/0003_Graph/0010_DirectedAcyclicGraphShortestPathTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0010_DirectedAcyclicGraphShortestPath.h" +#include "../include/0003_Graph/0010_DirectedAcyclicGraphShortestPath.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace DirectedAcyclicGraphShortestPath diff --git a/Tests/0003_Graph/0011_SingleSourceShortestPathDijkstraTest.cc b/test/0003_Graph/0011_SingleSourceShortestPathDijkstraTest.cc similarity index 92% rename from Tests/0003_Graph/0011_SingleSourceShortestPathDijkstraTest.cc rename to test/0003_Graph/0011_SingleSourceShortestPathDijkstraTest.cc index 4f0be15..2e5164d 100644 --- a/Tests/0003_Graph/0011_SingleSourceShortestPathDijkstraTest.cc +++ b/test/0003_Graph/0011_SingleSourceShortestPathDijkstraTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0011_SingleSourceShortestPathDijkstra.h" +#include "../include/0003_Graph/0011_SingleSourceShortestPathDijkstra.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace SingleSourceShortestPathDijkstra diff --git a/Tests/0003_Graph/0012_DifferenceConstraintsShortestPathsTest.cc b/test/0003_Graph/0012_DifferenceConstraintsShortestPathsTest.cc similarity index 93% rename from Tests/0003_Graph/0012_DifferenceConstraintsShortestPathsTest.cc rename to test/0003_Graph/0012_DifferenceConstraintsShortestPathsTest.cc index 04b293e..df4757b 100644 --- a/Tests/0003_Graph/0012_DifferenceConstraintsShortestPathsTest.cc +++ b/test/0003_Graph/0012_DifferenceConstraintsShortestPathsTest.cc @@ -1,5 +1,5 @@ #include -#include"../Headers/0003_Graph/0012_DifferenceConstraintsShortestPaths.h" +#include"../include/0003_Graph/0012_DifferenceConstraintsShortestPaths.h" #include"../0000_CommonUtilities/UnitTestHelper.h" using namespace std; diff --git a/Tests/0003_Graph/0013_AllPairsShortestPathsFloydWarshallTest.cc b/test/0003_Graph/0013_AllPairsShortestPathsFloydWarshallTest.cc similarity index 94% rename from Tests/0003_Graph/0013_AllPairsShortestPathsFloydWarshallTest.cc rename to test/0003_Graph/0013_AllPairsShortestPathsFloydWarshallTest.cc index d14130f..de88688 100644 --- a/Tests/0003_Graph/0013_AllPairsShortestPathsFloydWarshallTest.cc +++ b/test/0003_Graph/0013_AllPairsShortestPathsFloydWarshallTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.h" +#include "../include/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.h" #include"../0000_CommonUtilities/UnitTestHelper.h" using namespace std; diff --git a/Tests/0003_Graph/0014_AllPairsShortestPathsJohnsonTest.cc b/test/0003_Graph/0014_AllPairsShortestPathsJohnsonTest.cc similarity index 95% rename from Tests/0003_Graph/0014_AllPairsShortestPathsJohnsonTest.cc rename to test/0003_Graph/0014_AllPairsShortestPathsJohnsonTest.cc index 55610f2..c771282 100644 --- a/Tests/0003_Graph/0014_AllPairsShortestPathsJohnsonTest.cc +++ b/test/0003_Graph/0014_AllPairsShortestPathsJohnsonTest.cc @@ -1,5 +1,5 @@ #include -#include"../Headers/0003_Graph/0014_AllPairsShortestPathsJohnson.h" +#include"../include/0003_Graph/0014_AllPairsShortestPathsJohnson.h" #include"../0000_CommonUtilities/UnitTestHelper.h" using namespace std; diff --git a/Tests/0003_Graph/0015_MaximumFlowFordFulkersonTest.cc b/test/0003_Graph/0015_MaximumFlowFordFulkersonTest.cc similarity index 95% rename from Tests/0003_Graph/0015_MaximumFlowFordFulkersonTest.cc rename to test/0003_Graph/0015_MaximumFlowFordFulkersonTest.cc index b96b2ef..b476189 100644 --- a/Tests/0003_Graph/0015_MaximumFlowFordFulkersonTest.cc +++ b/test/0003_Graph/0015_MaximumFlowFordFulkersonTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0015_MaximumFlowFordFulkerson.h" +#include "../include/0003_Graph/0015_MaximumFlowFordFulkerson.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace MaximumFlowFordFulkerson diff --git a/Tests/0003_Graph/0016_MaximumFlowEdmondsKarpTest.cc b/test/0003_Graph/0016_MaximumFlowEdmondsKarpTest.cc similarity index 95% rename from Tests/0003_Graph/0016_MaximumFlowEdmondsKarpTest.cc rename to test/0003_Graph/0016_MaximumFlowEdmondsKarpTest.cc index fc1492c..09f105a 100644 --- a/Tests/0003_Graph/0016_MaximumFlowEdmondsKarpTest.cc +++ b/test/0003_Graph/0016_MaximumFlowEdmondsKarpTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0016_MaximumFlowEdmondsKarp.h" +#include "../include/0003_Graph/0016_MaximumFlowEdmondsKarp.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace MaximumFlowEdmondsKarp diff --git a/Tests/0003_Graph/0017_MaximumBipartiteMatchingTest.cc b/test/0003_Graph/0017_MaximumBipartiteMatchingTest.cc similarity index 93% rename from Tests/0003_Graph/0017_MaximumBipartiteMatchingTest.cc rename to test/0003_Graph/0017_MaximumBipartiteMatchingTest.cc index 506e2df..152ae9a 100644 --- a/Tests/0003_Graph/0017_MaximumBipartiteMatchingTest.cc +++ b/test/0003_Graph/0017_MaximumBipartiteMatchingTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0017_MaximumBipartiteMatching.h" +#include "../include/0003_Graph/0017_MaximumBipartiteMatching.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace MaximumBipartiteMatching diff --git a/Tests/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabelTest.cc b/test/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabelTest.cc similarity index 92% rename from Tests/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabelTest.cc rename to test/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabelTest.cc index 6c398be..6069930 100644 --- a/Tests/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabelTest.cc +++ b/test/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabelTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.h" +#include "../include/0003_Graph/0018_MaximumFlowGoldbergGenericPushRelabel.h" #include "../0000_CommonUtilities/UnitTestHelper.h" namespace MaximumFlowGoldbergGenericPushRelabel diff --git a/Tests/0003_Graph/0019_MaximumFlowRelabelToFrontTest.cc b/test/0003_Graph/0019_MaximumFlowRelabelToFrontTest.cc similarity index 92% rename from Tests/0003_Graph/0019_MaximumFlowRelabelToFrontTest.cc rename to test/0003_Graph/0019_MaximumFlowRelabelToFrontTest.cc index 0d40be0..269bf6d 100644 --- a/Tests/0003_Graph/0019_MaximumFlowRelabelToFrontTest.cc +++ b/test/0003_Graph/0019_MaximumFlowRelabelToFrontTest.cc @@ -1,5 +1,5 @@ #include -#include "../Headers/0003_Graph/0019_MaximumFlowRelabelToFront.h" +#include "../include/0003_Graph/0019_MaximumFlowRelabelToFront.h" #include "../0000_CommonUtilities/UnitTestHelper.h" using namespace std; diff --git a/Tests/0003_Graph/CMakeLists.txt b/test/0003_Graph/CMakeLists.txt similarity index 89% rename from Tests/0003_Graph/CMakeLists.txt rename to test/0003_Graph/CMakeLists.txt index d81b116..275d4a8 100644 --- a/Tests/0003_Graph/CMakeLists.txt +++ b/test/0003_Graph/CMakeLists.txt @@ -5,11 +5,11 @@ FetchContent_Declare( googletest URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip ) + # For Windows: Prevent overriding the parent project's compiler/linker settings set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) - enable_testing() add_executable( @@ -41,5 +41,10 @@ target_link_libraries( 0003GRAPH ) +# Add .clang-tidy configuration to this library. +if(CLANG_TIDY_EXE) + set_target_properties(0003GRAPH PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}") +endif() + include(GoogleTest) gtest_discover_tests(0003GraphTests DISCOVERY_TIMEOUT 30) \ No newline at end of file diff --git a/Tests/0004_GreedyAlgorithms/CMakeLists.txt b/test/0004_GreedyAlgorithms/CMakeLists.txt similarity index 100% rename from Tests/0004_GreedyAlgorithms/CMakeLists.txt rename to test/0004_GreedyAlgorithms/CMakeLists.txt diff --git a/Tests/0005_DynamicProgramming/CMakeLists.txt b/test/0005_DynamicProgramming/CMakeLists.txt similarity index 100% rename from Tests/0005_DynamicProgramming/CMakeLists.txt rename to test/0005_DynamicProgramming/CMakeLists.txt diff --git a/Tests/0006_BitwiseAlgorithms/CMakeLists.txt b/test/0006_BitwiseAlgorithms/CMakeLists.txt similarity index 100% rename from Tests/0006_BitwiseAlgorithms/CMakeLists.txt rename to test/0006_BitwiseAlgorithms/CMakeLists.txt diff --git a/Tests/CMakeLists.txt b/test/CMakeLists.txt similarity index 100% rename from Tests/CMakeLists.txt rename to test/CMakeLists.txt pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy