diff --git a/CMakeLists.txt b/CMakeLists.txt index b496f7a..6bfce73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -229,7 +229,7 @@ target_link_libraries(${BTCPP_LIBRARY} Threads::Threads ${CMAKE_DL_LIBS} $ - $ + tinyxml2::tinyxml2 $ $ PUBLIC diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in index eaed471..73c3d4c 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@")