-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathextension_config.cmake
48 lines (40 loc) · 1.25 KB
/
extension_config.cmake
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
47
48
get_filename_component(rfc_ext "${PROJECT_SOURCE_DIR}/../rfc" REALPATH)
get_filename_component(bics_ext "${PROJECT_SOURCE_DIR}/../bics" REALPATH)
get_filename_component(odp_ext "${PROJECT_SOURCE_DIR}/../odp" REALPATH)
get_filename_component(erpl_ext "${PROJECT_SOURCE_DIR}/../trampoline" REALPATH)
if(CMAKE_BUILD_TYPE STREQUAL "Release")
duckdb_extension_load(erpl_rfc
SOURCE_DIR "${rfc_ext}"
DONT_LINK
)
if (EXISTS "${bics_ext}/CMakeLists.txt")
duckdb_extension_load(erpl_bics
SOURCE_DIR "${bics_ext}"
DONT_LINK
)
endif()
if (EXISTS "${odp_ext}/CMakeLists.txt")
duckdb_extension_load(erpl_odp
SOURCE_DIR "${odp_ext}"
DONT_LINK
)
endif()
duckdb_extension_load(erpl
SOURCE_DIR "${erpl_ext}"
DONT_LINK
)
else()
duckdb_extension_load(erpl_rfc
SOURCE_DIR "${rfc_ext}"
)
if (EXISTS "${bics_ext}/CMakeLists.txt")
duckdb_extension_load(erpl_bics
SOURCE_DIR "${bics_ext}"
)
endif()
if (EXISTS "${odp_ext}/CMakeLists.txt")
duckdb_extension_load(erpl_odp
SOURCE_DIR "${odp_ext}"
)
endif()
endif()