Bare utilities for CMake
npm install cmake-bareBare utilities for CMake.
```
npm i cmake-bare
`cmake`
find_package(cmake-bare REQUIRED PATHS node_modules/cmake-bare)
#### bare_platform(
Write the current compilation target platform to the variable.
#### bare_arch(
Write the current compilation target architecture to the variable.
#### bare_simulator(
Write whether or not the current compilation target is a simulator to the variable.
#### bare_environment(
Write the current compilation target environment to the variable.
#### bare_target(
Write the current compilation target to the variable.
#### bare_module_target(
Determine the CMake library target name of the module in and write the result to the variable. The NAME, VERSION, and HASH arguments can be passed to access specific portions of the target name which will be of the format ${name}-${version}-${hash}.
#### add_bare_module(
Add a Bare native addon target and write the target name to the variable.
#### include_bare_module(
Include the Bare native addon identified by and write its library target name to the variable. If PREBUILD is passed then the native addon prebuild will be included as an imported target. The SOURCE_DIR and BINARY_DIR arguments can be passed to access the source and binary directories of the included addon.
To change the working directory from which is resolved, pass the WORKING_DIRECTORY argument.
#### link_bare_module(
Link the Bare native addon identified by to the library target identified by . By default, the objects of the native addon will be linked, effectively embedding the addon in . To instead link the shared library target of the native addon, such as when is itself another native addon, pass the SHARED option.
To change the working directory from which is resolved, pass the WORKING_DIRECTORY argument.
#### link_bare_modules(
Link all Bare native addons declared as dependencies in the package.json manifest of the current source directory to the library target identified by . Arguments are the same of for link_bare_module()`.
Apache-2.0