forked from v6d-io/v6d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vineyard-config.in.cmake
92 lines (76 loc) · 3.14 KB
/
vineyard-config.in.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# - Config file for the vineyard package
#
# It defines the following variables
#
# VINEYARD_INCLUDE_DIR - include directory for vineyard
# VINEYARD_INCLUDE_DIRS - include directories for vineyard
# VINEYARD_LIBRARIES - libraries to link against
# VINEYARDD_EXECUTABLE - the vineyardd executable
# VINEYARD_CODEGEN_EXECUTABLE - the vineyard codegen executable
set(USE_ASAN @USE_ASAN@)
set(USE_LIBUNWIND @USE_LIBUNWIND@)
set(BUILD_VINEYARD_SERVER @BUILD_VINEYARD_SERVER@)
set(BUILD_VINEYARD_CLIENT @BUILD_VINEYARD_CLIENT@)
set(BUILD_VINEYARD_PYTHON_BINDINGS @BUILD_VINEYARD_PYTHON_BINDINGS@)
set(BUILD_VINEYARD_PYPI_PACKAGES @BUILD_VINEYARD_PYPI_PACKAGES@)
set(BUILD_VINEYARD_BASIC @BUILD_VINEYARD_BASIC@)
set(BUILD_VINEYARD_IO @BUILD_VINEYARD_IO@)
set(BUILD_VINEYARD_IO_KAFKA @BUILD_VINEYARD_IO_KAFKA@)
set(BUILD_VINEYARD_GRAPH @BUILD_VINEYARD_GRAPH@)
set(BUILD_VINEYARD_GRAPH_WITH_GAR @BUILD_VINEYARD_GRAPH_WITH_GAR@)
set(BUILD_VINEYARD_MALLOC @BUILD_VINEYARD_MALLOC@)
set(BUILD_VINEYARD_FUSE @BUILD_VINEYARD_FUSE@)
set(BUILD_VINEYARD_FUSE_PARQUET @BUILD_VINEYARD_FUSE_PARQUET@)
set(BUILD_VINEYARD_HOSSEINMOEIN_DATAFRAME @BUILD_VINEYARD_HOSSEINMOEIN_DATAFRAME@)
set(BUILD_VINEYARD_TESTS @BUILD_VINEYARD_TESTS@)
set(BUILD_VINEYARD_TESTS_ALL @BUILD_VINEYARD_TESTS_ALL@)
set(BUILD_VINEYARD_COVERAGE @BUILD_VINEYARD_COVERAGE@)
set(BUILD_VINEYARD_PROFILING @BUILD_VINEYARD_PROFILING@)
# find pthread
find_package(Threads)
# for finding dependencies
include(CMakeFindDependencyMacro)
# find apache-arrow
if(NOT Arrow_FOUND AND NOT TARGET arrow_shared AND NOT TARGET arrow_static)
find_package(Arrow QUIET)
if(NOT Arrow_FOUND)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
find_dependency(Arrow)
endif()
endif()
if(BUILD_VINEYARD_GRAPH)
if(NOT TARGET grape-lite)
find_dependency(libgrapelite)
endif()
endif()
if(BUILD_VINEYARD_IO AND BUILD_VINEYARD_IO_KAFKA)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
if(NOT Rdkafka_FOUND)
find_dependency(Rdkafka)
endif()
endif()
if(BUILD_VINEYARD_GRAPH AND BUILD_VINEYARD_GRAPH_WITH_GAR)
if(NOT TARGET gar)
find_dependency(gar)
endif()
endif()
if(USE_LIBUNWIND)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
if(NOT LIBUNWIND_LIBRARIES)
find_package(LibUnwind QUIET)
endif()
endif()
set(VINEYARD_HOME "${CMAKE_CURRENT_LIST_DIR}/../../..")
include("${CMAKE_CURRENT_LIST_DIR}/vineyard-targets.cmake")
set(VINEYARD_LIBRARIES @VINEYARD_INSTALL_LIBS@)
set(VINEYARD_INCLUDE_DIR "${VINEYARD_HOME}/include"
"${VINEYARD_HOME}/include/vineyard"
"${VINEYARD_HOME}/include/vineyard/contrib")
set(VINEYARD_INCLUDE_DIRS "${VINEYARD_INCLUDE_DIR}")
set(VINEYARDD_EXECUTABLE "${VINEYARD_HOME}/bin/vineyardd")
set(VINEYARD_CODEGEN_EXECUTABLE "${VINEYARD_HOME}/bin/vineyard-codegen")
include(FindPackageMessage)
find_package_message(vineyard
"Found vineyard: ${CMAKE_CURRENT_LIST_FILE} (found version \"@VINEYARD_VERSION@\")"
"Vineyard version: @VINEYARD_VERSION@\nVineyard libraries: ${VINEYARD_LIBRARIES}, include directories: ${VINEYARD_INCLUDE_DIRS}"
)