README
Link CMake NPM
Link CMake projects from NPM packages
include(npm.cmake)
How to add CMake dependencies via NPM
- Add
@ekx/link-cmake-npm
to yourpackage.json
independency
section (not devDependencies because we want to resolve dependencies after install automatically) - Add
include(npm.cmake)
to the beginning of yourCMakeLists.txt
- Run
yarn link-cmake-npm
to generate resolvednpm.cmake
NOTE: Better package and command naming is
npm-cmake
?