This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Description
If I have a project with several targets, the nodejs_init function will grab the global SOURCES variable and set it as NODEJS_SOURCES
subsequent calls to add_nodejs_module will use NODEJS_SOURCES ... ignoring the parameters passed.
the documentation should reflect this flow:
include(NodeJS.cmake)
nodejs_init()
file(GLOB NODEJS_SOURCES "node/*.cpp")
add_nodejs_module(my_node_module)
Also, if I want to build more than one module.... I'll need multiple CMAKE files (which is OK, but not always desirable)