简单CMakeLists.txt文件
#CMakeLists.txt cmake_minimum_required(VERSION 2.8) project(server) #添加包含目录 include_directories(./include) #添加源文件 aux_source_directory(./src DIR_SRC) #添加头文件 SET(HEADERS include/hello.h ) #可执行文件 add_executable( ${PROJECT_NAME} ${DIR_SRC} ${HEADERS})