一个CMakeLists.txt模板

1
2
3
4
5
6
7
8
cmake_minimum_required (VERSION 3.9)

project (Tutorial)

add_excutable (Tutorial tutorial.cpp)

# add the install targets
install (TARGETS Tutorial DESTINATION bin)