https://blog.csdn.net/weixin_43742643/article/details/113858915
有3种方法:
1.设置库的DIR,如果find_package(Abc),则如下设置:
set(Abc_DIR ~/abc-cpp-path)
find_package(Abc REQUIRED)
2.设置PATHS
set(Abc required PATHS ~/abc-cpp-path)
3.指定CMAKE_PREFIX_PATH
cmake -DCMAKE_PREFIX_PATH="~/abc-cpp-path"