cmake: install python & node.js modules correctly
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -30,3 +30,7 @@ set_target_properties (maajs PROPERTIES
|
||||
PREFIX ""
|
||||
SUFFIX ".node"
|
||||
)
|
||||
|
||||
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/package.json
|
||||
${CMAKE_CURRENT_BINARY_DIR}/maajs.node
|
||||
DESTINATION lib/node_modules/maajs)
|
||||
|
||||
2
src/javascript/package.json
Normal file
2
src/javascript/package.json
Normal file
@@ -0,0 +1,2 @@
|
||||
{ "name" : "maajs",
|
||||
"main" : "./maajs.node" }
|
||||
Reference in New Issue
Block a user