ubuntu14.04上同时安装了opencv2和opencv3。从前大部分的程序都用opencv2,想要尝试 openvc3里面的一个新的功能。想用cmake,尽可能地把版本切换弄得自动化一些。
opencv2.4.8是装ROS的时候附带安装的 其路径是:
/usr/include
/usr/lib/x86_64-linux-gnu
相关的配置文件:
ubuntu14.04上同时安装了opencv2和opencv3。从前大部分的程序都用opencv2,想要尝试 openvc3里面的一个新的功能。想用cmake,尽可能地把版本切换弄得自动化一些。
opencv2.4.8是装ROS的时候附带安装的 其路径是:
/usr/include
/usr/lib/x86_64-linux-gnu
相关的配置文件:
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft