diff --git a/cmake/xo_pyunitConfig.cmake.in b/cmake/xo_pyunitConfig.cmake.in index 9c15f36a..18187c96 100644 --- a/cmake/xo_pyunitConfig.cmake.in +++ b/cmake/xo_pyunitConfig.cmake.in @@ -1,4 +1,11 @@ @PACKAGE_INIT@ +include(CMakeFindDependencyMacro) + +find_dependency(xo_pyutil) +find_dependency(xo_unit) +find_dependency(refcnt) +find_dependency(indentlog) + include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") check_required_components("@PROJECT_NAME@") diff --git a/src/pyunit/CMakeLists.txt b/src/pyunit/CMakeLists.txt index 9ef0a302..393a1387 100644 --- a/src/pyunit/CMakeLists.txt +++ b/src/pyunit/CMakeLists.txt @@ -6,6 +6,9 @@ set(SELF_SRCS pyunit.cpp) # ---------------------------------------------------------------- xo_pybind11_library(${SELF_LIB} ${PROJECT_NAME}Targets ${SELF_SRCS}) +xo_pybind11_dependency(${SELF_LIB} xo_pyutil) xo_pybind11_dependency(${SELF_LIB} xo_unit) +xo_pybind11_dependency(${SELF_LIB} refcnt) +xo_pybind11_dependency(${SELF_LIB} indentlog) # CMakeLists.txt