Skip to content

Commit 32bd1ea

Browse files
committed
Fix building examples
This change additionally removes unnecessary linked libraries.
1 parent d5549b2 commit 32bd1ea

File tree

6 files changed

+6
-36
lines changed

6 files changed

+6
-36
lines changed
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
cmake_minimum_required(VERSION 3.9)
2-
project(DialExample)
32

43
# specify the C++ standard
54
set(CMAKE_CXX_STANDARD 17)
@@ -8,10 +7,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
87
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES /usr/local/lib ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES})
98

109
add_executable(dial_example dial_example.cpp)
11-
target_include_directories(dial_example PUBLIC "${CMAKE_SOURCE_DIR}/include")
1210

1311
target_link_libraries(dial_example
14-
pthread
15-
ssl
16-
crypto
17-
z)
12+
${PROJECT_NAME})
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
cmake_minimum_required(VERSION 3.9)
2-
project(DijkstraExample)
32

43
# specify the C++ standard
54
set(CMAKE_CXX_STANDARD 17)
@@ -8,10 +7,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
87
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES /usr/local/lib ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES})
98

109
add_executable(dijkstra_example dijkstra_example.cpp)
11-
target_include_directories(dijkstra_example PUBLIC "${CMAKE_SOURCE_DIR}/include")
1210

1311
target_link_libraries(dijkstra_example
14-
pthread
15-
ssl
16-
crypto
17-
z)
12+
${PROJECT_NAME})
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
cmake_minimum_required(VERSION 3.9)
2-
project(floydWarshallExample)
32

43
# specify the C++ standard
54
set(CMAKE_CXX_STANDARD 17)
@@ -8,10 +7,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
87
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES /usr/local/lib ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES})
98

109
add_executable(floyd_warshall floyd_warshall.cpp)
11-
target_include_directories(floyd_warshall PUBLIC "${CMAKE_SOURCE_DIR}/include")
1210

1311
target_link_libraries(floyd_warshall
14-
pthread
15-
ssl
16-
crypto
17-
z)
12+
${PROJECT_NAME})
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
cmake_minimum_required(VERSION 3.9)
2-
project(NetworkDynamicsExample)
32

43
# specify the C++ standard
54
set(CMAKE_CXX_STANDARD 17)
@@ -8,10 +7,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
87
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES /usr/local/lib ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES})
98

109
add_executable(network_dynamics_example network_dynamics_example.cpp)
11-
target_include_directories(network_dynamics_example PUBLIC "${CMAKE_SOURCE_DIR}/include")
1210

1311
target_link_libraries(network_dynamics_example
14-
pthread
15-
ssl
16-
crypto
17-
z)
12+
${PROJECT_NAME})
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
cmake_minimum_required(VERSION 3.9)
2-
project(PartitionExample)
32

43
# specify the C++ standard
54
set(CMAKE_CXX_STANDARD 17)
@@ -8,10 +7,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
87
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES /usr/local/lib ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES})
98

109
add_executable(partition_example partition_example.cpp)
11-
target_include_directories(partition_example PUBLIC "${CMAKE_SOURCE_DIR}/include")
1210

1311
target_link_libraries(partition_example
14-
pthread
15-
ssl
16-
crypto
17-
z)
12+
${PROJECT_NAME})
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
cmake_minimum_required(VERSION 3.9)
2-
project(PrimExample)
32

43
# specify the C++ standard
54
set(CMAKE_CXX_STANDARD 17)
@@ -8,10 +7,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
87
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES /usr/local/lib ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES})
98

109
add_executable(prim_example prim_example.cpp)
11-
target_include_directories(prim_example PUBLIC "${CMAKE_SOURCE_DIR}/include")
1210

1311
target_link_libraries(prim_example
14-
pthread
15-
ssl
16-
crypto
17-
z)
12+
${PROJECT_NAME})

0 commit comments

Comments
 (0)