-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
18 lines (16 loc) · 1.12 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.24)
project(megasdkrestpp)
set(CMAKE_CXX_STANDARD 14)
include_directories(dependencies/include)
include_directories(dependencies/served/src)
include_directories(dependencies/SimpleJSON)
include_directories(dependencies/loguru)
set(SERVED_BUILD_SHARED OFF CACHE BOOL "disable shared lib")
set(SERVED_BUILD_TESTS OFF CACHE BOOL "disable served tests")
set(SERVED_BUILD_EXAMPLES OFF CACHE BOOL "disable served examples")
set(SERVED_BUILD_SHARED OFF CACHE BOOL "disable shared lib")
set(SERVED_BUILD_STATIC ON CACHE BOOL "enable static lib")
add_subdirectory(dependencies/served)
include_directories(.)
add_executable(megasdkrestpp main.cpp MegaAppRequestListener.cpp MegaAppTransferListener.cpp MegaDownload.cpp MegaDownloader.cpp Utils.cpp log.cpp)
target_link_libraries(megasdkrestpp ${CMAKE_SOURCE_DIR}/dependencies/libs/libMega.a ${CMAKE_SOURCE_DIR}/dependencies/libs/libcryptopp.a pthread ${CMAKE_SOURCE_DIR}/dependencies/libs/libsqlite3.a curl ${CMAKE_SOURCE_DIR}/dependencies/libs/libssl.a ${CMAKE_SOURCE_DIR}/dependencies/libs/libcrypto.a cares ${CMAKE_SOURCE_DIR}/dependencies/libs/libsodium.a rt dl served)