generated from duckdb/extension-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
46 lines (37 loc) · 1019 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 2.8.12...3.29)
project(HTTPFsExtension)
add_extension_definitions()
include_directories(include duckdb/third_party/httplib duckdb/extension/parquet/include)
build_static_extension(
httpfs
hffs.cpp
s3fs.cpp
httpfs.cpp
http_state.cpp
crypto.cpp
create_secret_functions.cpp
httpfs_extension.cpp)
set(PARAMETERS "-warnings")
build_loadable_extension(
httpfs
${PARAMETERS}
hffs.cpp
s3fs.cpp
httpfs.cpp
http_state.cpp
crypto.cpp
create_secret_functions.cpp
httpfs_extension.cpp)
target_link_libraries(httpfs_loadable_extension duckdb_mbedtls
)
target_link_libraries(httpfs_extension duckdb_mbedtls )
if(MINGW)
find_package(ZLIB)
target_link_libraries(httpfs_loadable_extension ZLIB::ZLIB -lcrypt32)
target_link_libraries(httpfs_extension ZLIB::ZLIB -lcrypt32)
endif()
install(
TARGETS httpfs_extension
EXPORT "${DUCKDB_EXPORT_SET}"
LIBRARY DESTINATION "${INSTALL_LIB_DIR}"
ARCHIVE DESTINATION "${INSTALL_LIB_DIR}")