-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
27 lines (24 loc) · 1.3 KB
/
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
cmake_minimum_required(VERSION 3.5)
project(cloud_storage)
set(CMAKE_CXX_STANDARD 14)
list(APPEND CLOUD_SERVICES
service_clients/service_client.h
service_clients/service_client.cpp
service_clients/service_factory.h
service_clients/dummy_client.h
service_clients/dummy_client.cpp
service_clients/yandex_rest_client.h
service_clients/yandex_rest_client.cpp
service_clients/dropbox_client.h
service_clients/dropbox_client.cpp
service_clients/googledrive_client.h
service_clients/googledrive_client.cpp
service_clients/onedrive_client.h
service_clients/onedrive_client.cpp
# add here your clients
)
#add_library(cloud_storage SHARED library.cpp library.h httplib.h json.hpp plugin_utils.h dialogs.cpp dialogs.h service_client.h service_client.cpp service_clients/dummy_client.h service_clients/dummy_client.cpp)
add_library(cloud_storage SHARED library.cpp library.h service_clients/httplib.h json.hpp plugin_utils.h plugin_utils.cpp dialogs.cpp dialogs.h ${CLOUD_SERVICES})
target_link_libraries(cloud_storage pthread ssl crypto)
set_target_properties(cloud_storage PROPERTIES PREFIX "" SUFFIX ".wfx")
#set_target_properties(cloud_storage PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32" PREFIX "" SUFFIX "_32.wfx")