use wrong core's directory when install c++ header files (#330)

This commit is contained in:
lvhan028 2021-12-23 14:31:17 +08:00 committed by GitHub
parent f76ac64cfe
commit 98da5e8ba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,13 +48,13 @@ target_include_directories(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME} PUBLIC ${SPDLOG_LIB} stdc++fs)
add_library(mmdeploy::core ALIAS ${PROJECT_NAME})
install(DIRECTORY ${CMAKE_SOURCE_DIR}/src/core
install(DIRECTORY ${CMAKE_SOURCE_DIR}/csrc/core
DESTINATION include/cpp
FILES_MATCHING PATTERN "*.h")
install(FILES ${CMAKE_SOURCE_DIR}/third_party/outcome/outcome-experimental.hpp
DESTINATION include/cpp/core)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/src/experimental
install(DIRECTORY ${CMAKE_SOURCE_DIR}/csrc/experimental
DESTINATION include/cpp
FILES_MATCHING PATTERN "*.h")