C++ Archive Network (CPPAN) Documentation
- Download the latest client application, unpack and put it to PATH.
- (!) Run once
cppanfrom any directory without any arguments to perform initial configuration. - In your
CMakeLists.txtwrite:
find_package(CPPAN REQUIRED)
cppan_add_package(
pvt.cppan.demo.sqlite3
pvt.cppan.demo.fmt-4
pvt.cppan.demo.madler.zlib-*
pvt.cppan.demo.boost.asio-1.66
...
libs you want to add
)
cppan_execute()
# near your target
add_executable(myexe ...)
target_link_libraries(myexe
pvt.cppan.demo.sqlite3
pvt.cppan.demo.madler.zlib
pvt.cppan.demo.boost.asio
...
)
- Perform other usual CMake steps.
Report if anything goes wrong with this workflow!
Make sure you are running the latest Visual Studio (2017), CMake.
- VS2017 - many setups.
- VS2017 + CMake + Ninja.
- Clang-cl (6.0+).
- Clang-cl + Ninja.
Cygwin poorly tested, slow builds. Mingw is not tested. Both in general should work fine. WSL works fine.
On Linux (Ubuntu and Centos) use ninja. Both of clang/gcc works fine. Make works only with single job.
Macos tested with different setups also gcc/clang/AppleClang/Xcode. Xcode and ninja uses multiple jobs. Make works only with single job.
- Getting Started - Running CPPAN client.
- Config Options - Tuning your dependencies, prepare your project to be added to CPPAN, available config options.
- Website Usage - Describes basic usage of CPPAN site.
- Build Definitions - Preprocessor variables you can rely on during CPPAN build.
- F.A.Q.
- Support CPPAN