diff --git a/cmake/iotjs.cmake b/cmake/iotjs.cmake index b39f3c1f75..ce5471176d 100644 --- a/cmake/iotjs.cmake +++ b/cmake/iotjs.cmake @@ -265,7 +265,13 @@ if("${BIN_INSTALL_DIR}" STREQUAL "") set(BIN_INSTALL_DIR "bin") endif() +if("${INCLUDE_INSTALL_DIR}" STREQUAL "") + set(INCLUDE_INSTALL_DIR "include/iotjs") +endif() + install(TARGETS ${TARGET_LIB_IOTJS} DESTINATION ${LIB_INSTALL_DIR}) +file(GLOB IOTJS_HEADERS include/*.js src/*.h) +install(FILES ${IOTJS_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}) if(NOT BUILD_LIB_ONLY)