sapling/eden/fs/store/hg/CMakeLists.txt
Wez Furlong a545acbbd4 eden: add C datapack/treemanifest to cmake build
Summary:
This requires our mercurial repo to be available during
the build; I symlink it in alongside `common` in the `oss` dir,
and point it up to `scm/hg`.

This has partial support for mononoke too, but will need to add
logic to getdeps to pull down the proxygen repo and build that.

Reviewed By: simpkins

Differential Revision: D13480146

fbshipit-source-id: 54874245015af83a259f56944d2e5f87615baee7
2019-01-17 18:52:53 -08:00

32 lines
599 B
CMake

file(GLOB STORE_HG_SRCS "*.cpp")
list(REMOVE_ITEM STORE_HG_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/tester.cpp)
add_library(
eden_store_hg STATIC
${STORE_HG_SRCS}
)
if (NOT EDEN_WIN_NOMONONOKE)
list(APPEND EDEN_STORE_HG_OPTIONAL_DEPS eden_store_mononoke)
endif()
if (EDEN_HAVE_HG_TREEMANIFEST)
list(APPEND EDEN_STORE_HG_OPTIONAL_DEPS datapack)
endif()
target_link_libraries(
eden_store_hg
PUBLIC
eden_model
eden_store
eden_utils
${EDEN_STORE_HG_OPTIONAL_DEPS}
)
add_executable(
hg_store_tester
tester.cpp
)
target_link_libraries(
hg_store_tester
eden_store_hg
)