This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Authored by Graham Dianaty for Bitlogix Technologies. Based on code from Rene Hollander. ==========// | |
function(setup_cmakejs) | |
find_program(CMAKEJS "cmake-js") | |
find_program(NPM "npm") | |
# first, check if we have NPM: | |
if(NPM) | |
message(VERBOSE "NPM found.") | |
else() | |
message(FATAL_ERROR "NPM not found. This project requires Node.js") | |
endif() |