add npm install command to packaged-console target

This commit is contained in:
Stephen Birarda 2016-01-14 10:25:26 -08:00
parent ded210db39
commit 24450517fa

View file

@ -6,6 +6,7 @@ endif()
# add a target that will package the console
add_custom_target(${TARGET_NAME} ALL
COMMAND npm install
COMMAND npm run packager -- --out ${CMAKE_CURRENT_BINARY_DIR} ${PRODUCTION_OPTION}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)