1 add_library(libhashkit SHARED
25 add_library(hashkit ALIAS libhashkit)
26 set_target_properties(libhashkit PROPERTIES
27 CXX_STANDARD ${CXX_STANDARD}
28 LIBRARY_OUTPUT_NAME hashkit
29 LIBRARY_OUTPUT_NAME_DEBUG hashkit-dbg
30 SOVERSION ${LIBHASHKIT_SO_VERSION})
31 target_compile_options(libhashkit PRIVATE -DBUILDING_HASHKIT)
32 target_include_directories(libhashkit PRIVATE
33 ${CMAKE_SOURCE_DIR}/src
34 ${CMAKE_BINARY_DIR}/src
36 target_include_directories(libhashkit PUBLIC
37 $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
38 $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>
39 $<INSTALL_INTERFACE:include>)
40 configure_file(hashkitcon.h.in hashkitcon.h @ONLY)
42 install(TARGETS libhashkit EXPORT libhashkit-targets
43 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
44 export(EXPORT libhashkit-targets NAMESPACE libmemcached::)
45 install(EXPORT libhashkit-targets NAMESPACE libmemcached:: DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake)
47 install_public_headers(