blob: 2c79c8e162e6d9bc00835290165bdcfb1279b62e (
plain) (
tree)
|
|
set(BACKEND_SRCS
basic.cc
)
set(BACKEND_LIBS "")
find_package(LibArchive)
if(LibArchive_FOUND)
list(APPEND BACKEND_SRCS tar.cc)
list(APPEND BACKEND_LIBS ${LibArchive_LIBRARIES})
endif()
add_library(hi-backends ${BACKEND_SRCS})
target_link_libraries(hi-backends ${BACKEND_LIBS})
install(TARGETS hi-backends DESTINATION lib)
if("cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
set_property(TARGET hi-backends PROPERTY CXX_STANDARD 17)
endif()
|