playground/cmake_demo/simple_library/README.md
2024-08-31 22:26:15 -04:00

1.1 KiB

Conan development

# install depedencies
conan install . --build=missing

# export recipe to the local cache
conan export . --name=simple_library --version=1.0.0 --user=ras --channel=stable

# builds the package
conan build . --name=simple_library --version=1.0.0 --user=ras --channel=stable

# create a package from a recipe in add to local cache
conan create . --name=simple_library --version=1.0.0 --user=ras --channel=stable

# check to see create works
conan list simple_library/1.0.0@ras/stable

conanfile.py

looks like exports_sources in conanfile.py is where you specify the essential files.

Upload to Conan

conan remote login -p <<password>> <<remote>> <<user>>
#                                   rastar     sprague.a.rick

conan upload --remote <<remote>> <<recipe>>
#                      rastar     simple_library

conan search simple_library

Building DEB

cpack -G DEB -C Release --config CPackConfig.cmake
dpkg-deb --contents SimpleLibrary-1.0.0.deb
dpkg-deb --info SimpleLibrary-1.0.0.deb

# Other notes
* pandoc to make man pages from markdown
* using conan for gmock and gtest