diff --git a/CMakeLists.txt b/CMakeLists.txt index c9528bd..0fd9f26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -231,7 +231,7 @@ target_link_libraries(${BTCPP_LIBRARY} ${CMAKE_DL_LIBS} $ $ - $ + tinyxml2::tinyxml2 $ $ PUBLIC diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in index eaed471..dd8a4a8 100644 --- a/cmake/Config.cmake.in +++ b/cmake/Config.cmake.in @@ -1,5 +1,10 @@ @PACKAGE_INIT@ +include(CMakeFindDependencyMacro) + +find_dependency(Threads) +find_dependency(tinyxml2 CONFIG) + include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") set(@PROJECT_NAME@_TARGETS "BT::@PROJECT_NAME@")