cmake 基本命令 & 交叉编译配置 & 模块的编写
cmake_minimum_required(VERSION 2.8.2 FATAL_ERROR)project("ProjName")// 不推荐使用add_definitions来设置编译选项,因为其作用如同cmake -Dadd_definitions( -std=c++11 # Or -std=c++0x -Wall -Wfatal-errors -DXXX