1 2set(FRUIT_SOURCES 3 memory_pool.cpp 4binding_normalization.cpp 5demangle_type_name.cpp 6component.cpp 7fixed_size_allocator.cpp 8injector_storage.cpp 9normalized_component_storage.cpp 10normalized_component_storage_holder.cpp 11semistatic_map.cpp 12semistatic_graph.cpp) 13 14if("${BUILD_SHARED_LIBS}") 15 add_library(fruit SHARED ${FRUIT_SOURCES}) 16 17 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") 18 set_target_properties(fruit PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE) 19 endif() 20else() 21 add_library(fruit STATIC ${FRUIT_SOURCES}) 22endif() 23 24install(TARGETS fruit 25 ARCHIVE DESTINATION "${INSTALL_LIBRARY_DIR}" 26 LIBRARY DESTINATION "${INSTALL_LIBRARY_DIR}") 27