0
点赞
收藏
分享

微信扫一扫

02 CMake入门案例一

夏沐沐 2022-02-25 阅读 52

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
)

target_include_directorices命令详解

举报

相关推荐

0 条评论