-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (24 loc) · 880 Bytes
/
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
cmake_minimum_required(VERSION 3.16)
project(fget)
set(CMAKE_CXX_STANDARD 17)
set(JSON_BuildTests OFF CACHE INTERNAL "")
include(FetchContent)
FetchContent_Declare(
httplib
GIT_REPOSITORY https://github.com/yhirose/cpp-httplib.git
GIT_TAG v0.8.7
)
FetchContent_MakeAvailable(httplib)
FetchContent_Declare(
json
GIT_REPOSITORY https://github.com/nlohmann/json.git
GIT_TAG v3.9.1
)
FetchContent_MakeAvailable(json)
add_executable(fget main.cpp crypto/crypto.h crypto/crypto.cpp
connection/connection.h args.h connection/download.cpp
connection/upload.cpp connection/connection.cpp connection/maxfs.cpp)
find_package(OpenSSL REQUIRED)
find_package(CryptoPP REQUIRED)
target_link_libraries(fget OpenSSL::SSL OpenSSL::Crypto httplib::httplib nlohmann_json::nlohmann_json)
target_link_libraries(fget cryptopp-static)