AUX_SOURCE_DIRECTORY

简介: AUX_SOURCE_DIRECTORY

语法

AUX_SOURCE_DIRECTORY(dir VARIABLE)点击复制复制失败已复制


作用

发现一个目录下所有源代码文件并将列表存储在一个变量中, 这个指令临时被用来自动构建源文件列表。因为目前 cmake 还不能自动发现新添加的源文件。


示例

AUX_SOURCE_DIRECTORY(. SRC_LIST)
ADD_EXECUTABLE(main ${SRC_LIST})
目录
相关文章
mkdir: cannot create directory `**': No such file or directory
在mkdir时报错的解决方案,在网上找了很多文章都没有说清楚原因。
420 0
|
6月前
|
Shell
adb: error: cannot create file/directory ‘d:/1.png‘: No such file or directory
adb: error: cannot create file/directory ‘d:/1.png‘: No such file or directory
102 0
|
6月前
|
JavaScript Java C++
【CMake 中的 aux_source_directory 命令深入解析】 aux_source_directory 命令从文件识别到最佳实践
【CMake 中的 aux_source_directory 命令深入解析】 aux_source_directory 命令从文件识别到最佳实践
670 0
|
Ubuntu Shell
bash: No such file or directory
bash: No such file or directory
158 0
|
Kubernetes Shell 容器
starting container process caused “exec: \“/bin/bash\“: stat /bin/bash: no such file or directory
starting container process caused “exec: \“/bin/bash\“: stat /bin/bash: no such file or directory
248 0
|
移动开发 Unix Shell
/bin/bash^M: bad interpreter: No such file or directory
/bin/bash^M: bad interpreter: No such file or directory
115 0
ftok info: No such file or directory
ftok info: No such file or directory
191 0
|
JavaScript
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
188 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
objdump: ‘1443.14.0)‘: No such file or directory
objdump: ‘1443.14.0)‘: No such file or directory
108 0