-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
46 lines (36 loc) · 1.14 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.10)
project(AppwriteSDK CXX)
set(CMAKE_CXX_STANDARD 11)
include_directories(${CMAKE_BINARY_DIR}/conan/include)
link_directories(${CMAKE_BINARY_DIR}/conan/lib)
find_package(CURL REQUIRED)
set(SRCS
src/Appwrite.cpp
src/services/Account.cpp
src/services/Databases.cpp
src/services/Storage.cpp
src/services/Health.cpp
src/Utils.cpp
src/Validator.cpp
)
add_library(AppwriteSDK STATIC ${SRCS})
include_directories(include)
target_link_libraries(AppwriteSDK CURL::libcurl)
set_target_properties(AppwriteSDK PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
)
set(HEADERS
include/Appwrite.hpp
include/classes/Account.hpp
include/classes/Databases.hpp
include/classes/Storage.hpp
include/classes/Health.hpp
include/config/Config.hpp
include/enums/HttpStatus.hpp
include/exceptions/AppwriteException.hpp
include/Utils.hpp
include/Validator.hpp
)
install(DIRECTORY include/ DESTINATION /usr/local/include/AppwriteSDK)
install(FILES ${HEADERS} DESTINATION /usr/local/include/AppwriteSDK)
install(TARGETS AppwriteSDK ARCHIVE DESTINATION /usr/local/lib)