npm-cmake
v0.1.0
Published
____ Link CMake projects installed from NPM packages ```cmake include(npm.cmake) ```
Downloads
5
Readme
Link CMake NPM
Link CMake projects installed from NPM packages
include(npm.cmake)
Package name convention
- Scoped NPM package name
@scope/package-name
transforms to CMake targetscope::package-name
- Packages without scope is not transform
How to add CMake dependencies via NPM
- Add
npm-cmake
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
npx npm-cmake
to generate resolvednpm.cmake
NOTE: Better package and command naming is
npm-cmake
?