> include:从给定文件中读取CMake列表文件代码.
include(<file|module> [OPTIONAL] [RESULT_VARIABLE <VAR>] [NO_POLICY_SCOPE])
使用示例:
的CMakeLists.txt:
cmake_minimum_required(VERSION 2.8) include (Project.txt)
Project.txt:
project (Project) add_executable(Project project.c)