
add_library(fruit demangle_type_name.cpp unsafe_module.cpp)

install(TARGETS fruit
  ARCHIVE DESTINATION lib/static)


add_library(fruit SHARED
demangle_type_name.cpp
unsafe_module.cpp)

install(TARGETS fruit
   LIBRARY DESTINATION lib)

Build a shared library instead of a static one.
Build a shared library instead of a static one.
