@ekx/link-cmake-npm

____ Link CMake projects from NPM packages ```cmake include(npm.cmake) ```

Usage no npm install needed!

<script type="module">
  import ekxLinkCmakeNpm from 'https://cdn.skypack.dev/@ekx/link-cmake-npm';
</script>

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 your package.json in dependency section (not devDependencies because we want to resolve dependencies after install automatically)
  • Add include(npm.cmake) to the beginning of your CMakeLists.txt
  • Run yarn link-cmake-npm to generate resolved npm.cmake

NOTE: Better package and command naming is npm-cmake?