CMake:如何将.def文件添加到Visual Studio项目过滤器?
如何将.def文件添加到Visual Studio项目过滤器( *。filters
文件)?
Visual Studio使用.def文件。
How to add .def file to Visual Studio project filters (*.filters
file)?
Visual Studio consumes .def file.
CMake代码:
set(a_src a.cpp a.def)
add_library(a SHARED ${a_src})
在解决方案中然后在项目中,过滤器中没有 a.def
文件,只有a.cpp。但是CMake会为.def文件生成规则(链接器的/DEF:a.def选项)。
In solution and then in project there is no a.def
file in filters, only a.cpp. But CMake generates a rule for .def file (/DEF:a.def option to linker).
有什么方法可以在项目过滤器中显示.def文件( a.filters
文件是否在项目附近)?
Is there any way to show .def files in the project filters (a.filters
file near the project)?
这是一个CMake的错误。
在其跟踪器中报告为 http://www.cmake。 org / Bug / view.php?id = 15313
This is a CMake bug. It is reported in their tracker at http://www.cmake.org/Bug/view.php?id=15313