-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (38 loc) · 1.3 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
include(FetchContent)
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(
0003GraphTests
0001_BreadthFirstSearchTest.cc
0002_DepthFirstSearchTest.cc
0003_TopologicalSortTest.cc
0004_StronglyConnectedComponentsTest.cc
0005_HamiltonianPathAndCycleTest.cc
0006_EulerianPathAndCircuitTest.cc
0007_MinimumSpanningTreeKruskalAlgorithmTest.cc
0008_MinimumSpanningTreePrimAlgorithmTest.cc
0009_SingleSourceShortestPathBellmanFordTest.cc
0010_DirectedAcyclicGraphShortestPathTest.cc
0011_SingleSourceShortestPathDijkstraTest.cc
0012_DifferenceConstraintsShortestPathsTest.cc
0013_AllPairsShortestPathsFloydWarshallTest.cc
0014_AllPairsShortestPathsJohnsonTest.cc
0015_MaximumFlowFordFulkersonTest.cc
0016_MaximumFlowEdmondsKarpTest.cc
0017_MaximumBipartiteMatchingTest.cc
0018_MaximumFlowGoldbergGenericPushRelabelTest.cc
0019_MaximumFlowRelabelToFrontTest.cc
)
target_link_libraries(
0003GraphTests
GTest::gtest_main
0003GRAPH
)
include(GoogleTest)
gtest_discover_tests(0003GraphTests DISCOVERY_TIMEOUT 30)