Skip to content

Instantly share code, notes, and snippets.

View taogashi's full-sized avatar

taogashi

  • Dreame Technology Ltd.
  • Shanghai
View GitHub Profile
@taogashi
taogashi / opencv2+opencv3.md
Last active January 29, 2021 05:31
elegantly maintain both opencv2 and opencv3 in ubuntu

ubuntu14.04上同时安装了opencv2和opencv3。从前大部分的程序都用opencv2,想要尝试 openvc3里面的一个新的功能。想用cmake,尽可能地把版本切换弄得自动化一些。

opencv2.4.8是装ROS的时候附带安装的 其路径是:

/usr/include
/usr/lib/x86_64-linux-gnu

相关的配置文件:

@mbinna
mbinna / effective_modern_cmake.md
Last active June 26, 2024 13:26
Effective Modern CMake

Effective Modern CMake

Getting Started

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