CMake: Add support to optionally install the built JavaScript shell
[WebKit-https.git] / Source / JavaScriptCore / shell / CMakeLists.txt
index a327204..85fa06c 100644 (file)
@@ -23,3 +23,7 @@ ENDIF ()
 IF (SHARED_CORE)
     SET_TARGET_PROPERTIES(${JSC_EXECUTABLE_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
 ENDIF ()
+
+IF (SHOULD_INSTALL_JS_SHELL)
+    INSTALL(TARGETS ${JSC_EXECUTABLE_NAME} DESTINATION bin)
+ENDIF ()