mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
46890ae1ec
Summary: Merge the fb-mercurial code into the Eden repository, under the `eden/scm` subdirectory. Reviewed By: quark-zju Differential Revision: D18445774 fbshipit-source-id: fc3307f9937e0c7e1c8f7d03c5102c4fe5dedb10
32 lines
658 B
CMake
32 lines
658 B
CMake
rust_static_library(rust_configparser CRATE configparser)
|
|
install_rust_static_library(
|
|
rust_configparser
|
|
EXPORT mercurial
|
|
INSTALL_DIR lib
|
|
)
|
|
|
|
add_library(configparser ConfigParser.cpp)
|
|
set_target_properties(
|
|
configparser
|
|
PROPERTIES
|
|
PUBLIC_HEADER
|
|
ConfigParser.h
|
|
)
|
|
target_include_directories(configparser PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
$<INSTALL_INTERFACE:include>
|
|
)
|
|
target_link_libraries(
|
|
configparser
|
|
PRIVATE
|
|
rust_configparser
|
|
Folly::folly
|
|
)
|
|
|
|
install(
|
|
TARGETS configparser
|
|
EXPORT mercurial
|
|
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
|
|
PUBLIC_HEADER DESTINATION "include/eden/scm/lib/configparser/"
|
|
)
|