Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
因为CMakeList.txt至少需要3.10版本才可以运行.
这样设置 C++14 的方式对吗?请改正
1.这是针对gcc的用法,对MSVC用户不方便。
2.再次添加会导致冲突。
使用 SHARED 在 Windows 上会遇到什么困难?请尝试修复!
1.当dll和exe不在同一目录时,只会查找exe所在目录和PATH。
2.除了手动链接,可以使用CMake把dll文件生成到与exe相同的目录去。
自动批量的添加源文件
1.使用GLOB 自动添加当前目录下指定扩展名的文件。
2.GLOB_RECURSE 自动包含所有子文件夹的文件(需要将源码放到src目录下)。