File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ build
Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.10)
2+ project (AppwriteSDK CXX)
3+
4+ set (CMAKE_CXX_STANDARD 11)
5+
6+ include_directories (include )
7+
8+ set (SRCS
9+ src/Appwrite.cpp
10+ src/services/Account.cpp
11+ src/services/Databases.cpp
12+ src/services/Storage.cpp
13+ src/services/Health.cpp
14+ src/Utils.cpp
15+ src/Validator.cpp
16+ )
17+
18+ add_library (AppwriteSDK STATIC ${SRCS} )
19+
20+ target_link_libraries (AppwriteSDK curl)
21+
22+ set_target_properties (AppwriteSDK PROPERTIES
23+ ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib
24+ )
25+
26+ set (HEADERS
27+ include /Appwrite.hpp
28+ include /classes/Account.hpp
29+ include /classes/Databases.hpp
30+ include /classes/Storage.hpp
31+ include /classes/Health.hpp
32+ include /config/Config.hpp
33+ include /enums/HttpStatus.hpp
34+ include /exceptions/AppwriteException.hpp
35+ include /Utils.hpp
36+ include /Validator.hpp
37+ )
38+
39+ install (DIRECTORY include / DESTINATION /usr/local/include /AppwriteSDK)
40+ install (FILES ${HEADERS} DESTINATION /usr/local/include /AppwriteSDK)
You can’t perform that action at this time.
0 commit comments