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) # compile
- Multi-files & multi-dirs 1# TODO
- Define compile options 1# TODO
- Add dependencies and testers 1# TODO
- Miscellaneous 1# TODO