mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
b56f28bf22
Summary: Fixes https://github.com/facebookexperimental/edencommon/issues/3 `utils` is a bit too generic and Gentoo seems to be building edencommon into a shared library. Reviewed By: chadaustin Differential Revision: D38719753 fbshipit-source-id: fb46b6a7c9d3bcc3034765cb47e997a80c646b3d
41 lines
697 B
CMake
41 lines
697 B
CMake
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License version 2.
|
|
|
|
file(GLOB STORE_SRCS "*.cpp")
|
|
list(
|
|
REMOVE_ITEM STORE_SRCS
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/eden_store_util.cpp"
|
|
)
|
|
|
|
add_library(
|
|
eden_store STATIC
|
|
${STORE_SRCS}
|
|
)
|
|
target_link_libraries(
|
|
eden_store
|
|
PUBLIC
|
|
eden_config
|
|
eden_model
|
|
eden_model_git
|
|
eden_service_thrift_cpp
|
|
eden_sqlite
|
|
fb303::fb303
|
|
edencommon::edencommon_utils
|
|
)
|
|
|
|
target_link_libraries(
|
|
eden_store
|
|
PUBLIC
|
|
eden_rocksdb
|
|
)
|
|
|
|
add_subdirectory(hg)
|
|
|
|
if("${EDEN_HAVE_GIT}")
|
|
add_subdirectory(git)
|
|
endif()
|
|
|
|
add_subdirectory(test)
|