diff --git a/csrc/mmdeploy/apis/cxx/CMakeLists.txt b/csrc/mmdeploy/apis/cxx/CMakeLists.txt index 6a5160d9c6..4cf95c87aa 100644 --- a/csrc/mmdeploy/apis/cxx/CMakeLists.txt +++ b/csrc/mmdeploy/apis/cxx/CMakeLists.txt @@ -8,7 +8,6 @@ target_include_directories(${PROJECT_NAME} INTERFACE $ $) target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_17) -target_link_libraries(${PROJECT_NAME} INTERFACE mmdeploy::core) set(_tasks ${MMDEPLOY_TASKS} pipeline) foreach (task ${_tasks}) target_link_libraries(mmdeploy_${task} INTERFACE ${PROJECT_NAME}) @@ -16,6 +15,21 @@ foreach (task ${_tasks}) DESTINATION include/mmdeploy) endforeach () if (TARGET mmdeploy) + target_include_directories(${PROJECT_NAME} INTERFACE + $ + $ + $ + ) + target_include_directories(${PROJECT_NAME} INTERFACE + $ + $ + $ + ) + if (NOT MMDEPLOY_SPDLOG_EXTERNAL) + target_include_directories(${PROJECT_NAME} INTERFACE + $ + $) + endif () target_link_libraries(mmdeploy INTERFACE ${PROJECT_NAME}) endif () mmdeploy_export(${PROJECT_NAME})