forked from v6d-io/v6d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvineyard-config.in.cmake
65 lines (52 loc) · 2.32 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
# - 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(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_MALLOC @BUILD_VINEYARD_MALLOC@)
set(BUILD_VINEYARD_MIGRATION @BUILD_VINEYARD_MIGRATION@)
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 nlohmann/json
find_dependency(nlohmann_json)
# find apache-arrow
find_package(Arrow QUIET)
if(NOT Arrow_FOUND)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
find_dependency(Arrow)
endif()
if(BUILD_VINEYARD_IO AND BUILD_VINEYARD_IO_KAFKA)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
find_dependency(Rdkafka)
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")
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}"
)