[CMake] linking FetchContent library
Stéphane Ancelot
sancelot at numalliance.com
Wed Apr 10 11:26:10 EDT 2019
Hi,
are there any specific Cmake configurations to setup in projects when
using fetchcontent.
I am able to fetch and build a library but not able to link and include
files of this library in another projects.
include(FetchContent)
FetchContent_Declare(
jconcpp
GIT_REPOSITORY https://github.com/joncol/jcon-cpp.git
)
FetchContent_Populate(jconcpp)
add_subdirectory(${jconcpp_SOURCE_DIR} ${jconcpp_BINARY_DIR})
Regards,
S.Ancelot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190410/6a5ee0d1/attachment.html>
More information about the CMake
mailing list