add installation directives (#14)

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Eric Engestrom 2019-05-10 16:21:54 +01:00 committed by Wang Xin
parent 179d34ac78
commit 108254974f

View File

@ -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)