File tree 6 files changed +27
-3
lines changed
6 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ file(GLOB_RECURSE SOURCE_FILES src/*.c src/*.h)
6
6
7
7
set (CMAKE_C_STANDARD 23) # Enable the C23 standard
8
8
9
+ find_package (OpenSSL REQUIRED)
10
+
9
11
add_executable (bittorrent ${SOURCE_FILES} )
12
+
13
+ target_link_libraries (bittorrent PRIVATE OpenSSL::Crypto)
Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
6
6
7
7
file (GLOB_RECURSE SOURCE_FILES src/*.cpp src/*.hpp)
8
8
9
- add_executable (bittorrent ${SOURCE_FILES} )
9
+ find_package (OpenSSL REQUIRED)
10
+
11
+ add_executable (bittorrent ${SOURCE_FILES} )
12
+
13
+ target_link_libraries (bittorrent PRIVATE OpenSSL::Crypto)
Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ file(GLOB_RECURSE SOURCE_FILES src/*.c src/*.h)
6
6
7
7
set (CMAKE_C_STANDARD 23) # Enable the C23 standard
8
8
9
+ find_package (OpenSSL REQUIRED)
10
+
9
11
add_executable (bittorrent ${SOURCE_FILES} )
12
+
13
+ target_link_libraries (bittorrent PRIVATE OpenSSL::Crypto)
Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
6
6
7
7
file (GLOB_RECURSE SOURCE_FILES src/*.cpp src/*.hpp)
8
8
9
- add_executable (bittorrent ${SOURCE_FILES} )
9
+ find_package (OpenSSL REQUIRED)
10
+
11
+ add_executable (bittorrent ${SOURCE_FILES} )
12
+
13
+ target_link_libraries (bittorrent PRIVATE OpenSSL::Crypto)
Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ file(GLOB_RECURSE SOURCE_FILES src/*.c src/*.h)
6
6
7
7
set (CMAKE_C_STANDARD 23) # Enable the C23 standard
8
8
9
+ find_package (OpenSSL REQUIRED)
10
+
9
11
add_executable (bittorrent ${SOURCE_FILES} )
12
+
13
+ target_link_libraries (bittorrent PRIVATE OpenSSL::Crypto)
Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
6
6
7
7
file (GLOB_RECURSE SOURCE_FILES src/*.cpp src/*.hpp)
8
8
9
- add_executable (bittorrent ${SOURCE_FILES} )
9
+ find_package (OpenSSL REQUIRED)
10
+
11
+ add_executable (bittorrent ${SOURCE_FILES} )
12
+
13
+ target_link_libraries (bittorrent PRIVATE OpenSSL::Crypto)
You can’t perform that action at this time.
0 commit comments