true, c++ renews itself every 3 years which is great, except that its tooling remains the same.
equip c++ with new tooling like what golang and rust have will be a huge boost to this language.
equip c++ with new tooling like what golang and rust have will be a huge boost to this language.
It needs more guidance for making simple, typical projects easy to set up, at the very least more stuff that works like ExternalProject_Add (a big powerful command with all its options clearly documented on one page).
1) declare your dependencies in a vcpkg.json file (similar to npm's package.json). Example:
{ ... "dependencies": [ "openssl" ] }
2) Add it to your CMakeLists.txt file. Example:
find_package(OpenSSL REQUIRED)
target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto)