@PACKAGE_INIT@ # 包含导出的目标文件 include("${CMAKE_CURRENT_LIST_DIR}/cxxLibraryTargets.cmake") # 手动设置包含路径 get_target_property(cxxLibrary_INCLUDE_DIRS cxxLibrary::cxxLibrary INTERFACE_INCLUDE_DIRECTORIES) if(NOT cxxLibrary_INCLUDE_DIRS) set(cxxLibrary_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include") endif() # 设置找到的变量 set(cxxLibrary_VERSION @PROJECT_VERSION@) set(cxxLibrary_VERSION_STRING "@PROJECT_VERSION@") set(cxxLibrary_FOUND TRUE) message(STATUS "Found cxxLibrary version ${cxxLibrary_VERSION}")