diff --git a/core/iwasm/products/linux/CMakeLists.txt b/core/iwasm/products/linux/CMakeLists.txt index 5421d11ee..4a955f1b6 100644 --- a/core/iwasm/products/linux/CMakeLists.txt +++ b/core/iwasm/products/linux/CMakeLists.txt @@ -75,6 +75,8 @@ add_library (vmlib add_executable (iwasm main.c ext-lib-export.c) +install (TARGETS iwasm DESTINATION bin) + target_link_libraries (iwasm vmlib -lm -ldl -lpthread) add_library (libiwasm SHARED @@ -86,6 +88,8 @@ add_library (libiwasm SHARED ${PLATFORM_SHARED_SOURCE} ${MEM_ALLOC_SHARED_SOURCE}) +install (TARGETS libiwasm DESTINATION lib) + set_target_properties (libiwasm PROPERTIES OUTPUT_NAME iwasm) target_link_libraries (libiwasm -lm -ldl -lpthread)