sapling/eden/scm/lib/configparser/CMakeLists.txt
Adam Simpkins 46890ae1ec Merge fb-mercurial sources into the eden repository
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
2019-11-13 20:20:32 -08:00

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/"
)