|
|
|
|
|
by TillE
1472 days ago
|
|
It's good that the C++ world has effectively standardized on something, but CMake still has a steep learning curve. I hate its structure as a jumbled mess of independent commands. 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: