-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(build): Add support for CMake package #14738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
f093d69
3194ae5
ebbc5a3
c9ca8c1
bbf1863
4a25bd2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
@PACKAGE_INIT@ | ||
|
||
include(CMakeFindDependencyMacro) | ||
|
||
block() | ||
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") | ||
|
||
if("@Arrow_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(Arrow) | ||
endif() | ||
if("@Boost_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(Boost COMPONENTS "@BOOST_INCLUDE_LIBRARIES@") | ||
endif() | ||
find_dependency(double-conversion) | ||
if("@folly_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(folly) | ||
endif() | ||
if("@fmt_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(fmt) | ||
endif() | ||
if("@gflags_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(gflags) | ||
endif() | ||
if("@glog_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(glog) | ||
endif() | ||
if("@VELOX_ENABLE_COMPRESSION_LZ4@") | ||
find_dependency(lz4) | ||
endif() | ||
if("@Protobuf_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(Protobuf) | ||
endif() | ||
if("@re2_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(re2) | ||
endif() | ||
if("@stemmer_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(stemmer) | ||
endif() | ||
if("@VELOX_BUILD_MINIMAL_WITH_DWIO@" OR "@VELOX_ENABLE_HIVE_CONNECTOR@") | ||
find_dependency(Snappy) | ||
find_dependency(ZLIB) | ||
find_dependency(zstd) | ||
endif() | ||
if("@simdjson_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(simdjson) | ||
endif() | ||
if("@THRIFT_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(Thrift) | ||
endif() | ||
if("@xsimd_SOURCE@" STREQUAL "SYSTEM") | ||
find_dependency(xsimd) | ||
endif() | ||
endblock() | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/VeloxTargets.cmake") | ||
|
||
check_required_components(Velox) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,10 @@ velox_add_library(velox_tpch_gen DBGenIterator.cpp TpchGen.cpp) | |
|
||
velox_include_directories(velox_tpch_gen PRIVATE dbgen/include) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this not need the same generator expression as
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need it here because this is a "PRIVATE" include directory. "PRIVATE" include directories aren't exported. |
||
|
||
velox_link_libraries(velox_tpch_gen velox_memory velox_vector dbgen) | ||
velox_link_libraries( | ||
velox_tpch_gen | ||
PUBLIC velox_memory velox_vector "$<BUILD_LOCAL_INTERFACE:dbgen>" | ||
) | ||
|
||
if(${VELOX_BUILD_TESTING}) | ||
add_subdirectory(tests) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sorry. This is not an intended change. I'll revert this.
We should work on this as #14756 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted.