summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2016-10-25 11:57:38 -0700
committerGitHub <noreply@github.com>2016-10-25 11:57:38 -0700
commitdc35ac6e83694fda26a78d8b11712c3210e30b36 (patch)
tree7d33a6dd0d52b112b4febf948a90b8530272628e
parent94511d74d495bed63da81d742ea61ea6e1ccabf1 (diff)
downloadbinaryen-dc35ac6e83694fda26a78d8b11712c3210e30b36.tar.gz
binaryen-dc35ac6e83694fda26a78d8b11712c3210e30b36.tar.bz2
binaryen-dc35ac6e83694fda26a78d8b11712c3210e30b36.zip
Create CMake install targets for libs and JS files (#798)
This creates install rules for the binaryen shlib and the C header, as well as for the various JS files (wasm.js and binaryen.js, as well as those used by emscripten). It recreates in the install target the current layout used by an in-tree build.
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 65661ff94..1b2c4976d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -119,6 +119,12 @@ ELSE()
ADD_LIBRARY(binaryen SHARED ${binaryen_SOURCES})
ENDIF()
TARGET_LINK_LIBRARIES(binaryen ${all_passes} wasm asmjs support)
+INSTALL(TARGETS binaryen DESTINATION lib)
+
+INSTALL(FILES src/binaryen-c.h DESTINATION include)
+INSTALL(FILES bin/wasm.js DESTINATION bin)
+INSTALL(FILES bin/binaryen.js DESTINATION bin)
+INSTALL(DIRECTORY src/js DESTINATION src)
SET(wasm-shell_SOURCES
src/tools/wasm-shell.cpp