00 hello-cmake
cmake_minimum_required(VERSION 3.5)
project (hello_cmake)
add_executable(hello_cmake main.cpp)
add_executable命令详解
01 hello-headers
cmake_minimum_required(VERSION 3.5)
project(hello-headers)
set(SOURCES
src/hello.cpp
src/main.cpp
)
add_executable(hello-headers ${SOURCES})
target_include_directories(hello_headers
PRIVATE
${PROJEC_SOURCE_DIR}/include
)