简单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})

 

posted @ 2016-03-27 19:12  你好阿汤哥  Views(388)  Comments(0Edit  收藏  举报