mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
ef671b4e4e
Reviewed By: simpkins Differential Revision: D19956271 fbshipit-source-id: d5a88ea8570421a1c61900fbad8a0f9d3e311458
53 lines
863 B
CMake
53 lines
863 B
CMake
# Copyright (c) Facebook, Inc. and its 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"
|
|
)
|
|
|
|
if (WIN32)
|
|
list(
|
|
REMOVE_ITEM STORE_SRCS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/RocksDbLocalStore.cpp
|
|
)
|
|
endif()
|
|
|
|
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
|
|
)
|
|
|
|
if (NOT WIN32)
|
|
target_link_libraries(
|
|
eden_store
|
|
PUBLIC
|
|
eden_rocksdb
|
|
)
|
|
endif()
|
|
|
|
add_subdirectory(hg)
|
|
|
|
if("${EDEN_HAVE_GIT}")
|
|
add_subdirectory(git)
|
|
endif()
|
|
|
|
if (NOT WIN32)
|
|
add_subdirectory(mononoke)
|
|
endif()
|
|
|
|
add_subdirectory(test)
|