CMake - 使用英特尔编译器生成Visual Studio项目 [英] CMake - Generating Visual Studio project using Intel Compiler
问题描述
有没有一种简单(或黑客)的方式来生成使用英特尔编译器从cmake的Visual Studio 2008项目?
我发现了一些。
Is there a simple (or hack) way to generate a Visual Studio 2008 project that uses Intel Compiler from cmake?
I have found some notes about using ICProjConvert
. Does anyone have any scripts or CMake snippets that are proven to work?
Here's the screenshot of the final solution I'd like to obtain. Note that it contains Intel Compiler projects:
The situation is not that good at the moment. After much googling, I've managed to find the following thread on the mailing list. It turns out that I'm not the only one struggling with the problem.
For the time being there is no easy solution, as:
- cmake does not have a generator that would give the result out of the box
- it seems that there is currently no way to do post-generate tasks with cmake
As a quick fix I can do the following:
- generate the VS solution and then use the one-click Intel Conversion tool (automatisation gone)
- write some shell scripts to do the conversion - a bit ugly
Update: Doing the project conversion in the post-generate task is a bit of a hack. I started to think about modifying the existing Visual Studio generator(s) to be able to create the right structure. The structure itself does not differ much from the typical solution:
- New
.icproj
files are introduced between the solution and VS project level. They wrap the VS project and correspond to the blue thingy on the screenshot. - Original
.vcproj
remain unchanged. They are being referenced (by GUID and name) in the.icproj
files - Unique references to
.vcproj
files in the solution.sln
definition are replaced with the references to.icproj
files. The project type is changed as well to a Intel Project specific constant GUID.
Update 2: Check the bug tracker.
这篇关于CMake - 使用英特尔编译器生成Visual Studio项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!