Преглед изворни кода

add installation directives (#14)

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Eric Engestrom пре 6 година
родитељ
комит
108254974f
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      core/iwasm/products/linux/CMakeLists.txt

+ 4 - 0
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)