first commit

This commit is contained in:
2024-07-08 15:54:04 +05:30
commit f4709c97ab
17 changed files with 2691 additions and 0 deletions

21
test/CMakeLists.txt Normal file
View File

@@ -0,0 +1,21 @@
set(TEST_MAIN "test_main.cpp")
add_executable(${TEST_EXE}
${TEST_MAIN})
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(${TEST_EXE} PUBLIC
${TORRENT_LIB}
${OPENSSL_LIBRARIES}
${OPENSSL_CRYPTO_LIBRARY}
${OPENSSL_SSL_LIBRARY}
${CURL_LIBRARIES}
Threads::Threads)
target_include_directories(${TEST_EXE} PUBLIC
${HEADER_DIR}
${OPENSSL_INCLUDE_DIR}
${CURL_INCLUDE_DIRS}
${EVENTPP_HEADER_DIR})