blob: 0e328cf6dc365ed0eb088e291bd8afd18cb563eb [file] [log] [blame]
set(FRUIT_SOURCES
memory_pool.cpp
binding_normalization.cpp
demangle_type_name.cpp
component.cpp
fixed_size_allocator.cpp
injector_storage.cpp
normalized_component_storage.cpp
normalized_component_storage_holder.cpp
semistatic_map.cpp
semistatic_graph.cpp)
if("${BUILD_SHARED_LIBS}")
add_library(fruit SHARED ${FRUIT_SOURCES})
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
set_target_properties(fruit PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
endif()
else()
add_library(fruit STATIC ${FRUIT_SOURCES})
endif()
install(TARGETS fruit
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")