多目录下CMakeLists写法
CMake目录如下图(标准写法)
1 | - user_project/ - CMakelists.txt |
user_project/ - CMakelists.txt(父目录)下的写法
1 | cmake_minimum_required (VERSION 2.8) |
- src/ - CMakelists.txt(子目录)下的写法
1 | cmake_minimum_required (VERSION 2.8) |
1 | - user_project/ - CMakelists.txt |
1 | cmake_minimum_required (VERSION 2.8) |
1 | cmake_minimum_required (VERSION 2.8) |