upm/cmake/modules/FindNpm.cmake
Abhishek Malik d52c2df7c6 JSON: Adding ctest
This commit adds node based tests provided by Nico to the ctest
framework already established in UPM.

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
2017-08-28 17:15:07 -07:00

14 lines
337 B
CMake

# Finding and pointing a variable to the npm executable if found
# Only works on Linux systems as of now
find_program(NPM_EXECUTABLE NAMES npm
HINTS
/usr
)
if(NPM_EXECUTABLE)
message(STATUS "NPM Executable found at ${NPM_EXECUTABLE}")
else()
message(ERROR "Unable to find NPM installation, please install NPM")
endif()