Visual Studio C ++默认目录 [英] Visual studio C++ default directory
问题描述
可以更改项目属性以在其他目录中查找数据文件,而不是在默认源代码目录中查找?
代码还有另外一种方法吗?
我想运行一些OpenNV 3.3中包含的深度学习算法的DNN样本。
问题是它们在目录中包含了大量的示例图像和文件。
我不想更改所有文件姓名xxx.jpg由data / dnn / xxx.jpg在源代码中
我尝试过:
我尝试复制源代码目录中的所有示例文件
It is possible to change project properties to look for data files in other directory instead in the default source code directory?
There is another way in the code?
I would like to run some of the DNN samples of deep learning algorithms included in OpenCV 3.3.
The problem is that they include a lot of sample images and files in a directory.
I should like not to change all file names xxx.jpg by data/dnn/xxx.jpg at the source code
What I have tried:
I tried copy all sample files in source code directory
推荐答案
在Visual Studio的项目设置中,您可以设置一些不同的目录代码,库等。
提示:使用相对路径
In the project settings of Visual Studio you can set some different directories for code, libs and so on.
Tip: use relative pathes
这篇关于Visual Studio C ++默认目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!