As the REST API is a part of the core, it is more appropriate for the tests to reside there as well. Further refactoring of the testing needs to be done to allow multiple components to use the same framework but with different tests.
12 lines
417 B
CMake
12 lines
417 B
CMake
find_package(NPM)
|
|
|
|
if (NPM_FOUND)
|
|
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/maxctrl/maxctrl
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.sh ${CMAKE_SOURCE_DIR}
|
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
|
|
add_custom_target(maxctrl ALL DEPENDS ${CMAKE_BINARY_DIR}/maxctrl/maxctrl)
|
|
install_script(${CMAKE_BINARY_DIR}/maxctrl/maxctrl core)
|
|
else()
|
|
message(STATUS "Not building MaxCtrl: npm not found")
|
|
endif()
|