I have used Makefile
for more than 3 years, and I like to use it for its easy-to-use. But I have to learn how to use Cmake
(I hate this) due to my project is based on OpenCV, which based on Cmake
when compiling. So I will write some tips/hints for myself:
Basic functions
123456#cmake_minimum_required(VERSION 2.8) # Required version for Cmakeproject(XXX) # project nameadd_executable(XXX) # compileMulti-files & multi-dirs
1# TODODefine compile options
1# TODOAdd dependencies and testers
1# TODOMiscellaneous
1# TODO