cmakelist里find-package怎么手动置顶路径和库文件
时间: 2023-05-17 22:05:06 浏览: 131
open3d-cmake-find-package
可以使用以下命令手动设置路径和库文件:
set(CMAKE_PREFIX_PATH "/path/to/package" ${CMAKE_PREFIX_PATH})
find_package(PackageName REQUIRED)
include_directories(${PackageName_INCLUDE_DIRS})
target_link_libraries(targetName ${PackageName_LIBRARIES})
阅读全文