conan 설치
sudo apt install python3-pip
sudo pip install conan
conanfile.txt를 root file에 작성
[requires]
zlib/1.2.11
openssl/1.1.1h
libcurl/7.79.1
gtest/1.8.1
[options]
libcurl:shared=True
zlib:shared=True
[generators]
cmake
cmake_find_package
build.script에 conan install을 통해 자신의 local 영역에 다운받음
conan install .. -pr=default
#If errors then exit
if [ "$?" != "0" ]; then
exit -1
fi
root cmake에 다음 스크립트를 통해 해당 패키지를 찾음
INCLUDE(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()