English 中文(简体)
cm 视觉演播室项目
原标题:cmake visual studio project subset

对于一个视觉演播室发电机,人们可以听说会产生一种解决办法,只包括一个次级项目? 目前,它产生了一种解决办法,包括所有项目(有细微清单档案的子公司)——在开展次级项目时使其真正不方便。

最佳回答

就我所知,你无法明确地告诉你,在你的“项目”之后,可以提出解决办法文件。

当然,随着《2010年视觉演播》,解决办法文件目录相对简单,或许可以生成。

我在自己的项目中采用的一种替代做法是,在多个次处分发你的项目,并增加CMakeList。 附有项目定义的标记。 在这种情况下,地震将在分局产生额外的解决方案档案。

例如,考虑一个应用和图书馆的项目:

主要的CMakeLists.txt:

project( Project )
add_subdirectory( libraries )
add_subdirectory( applications )

图书馆:

project( Libs )
add_subdirectory( corelib )
add_subdirectory( utils )

申请:

project( Apps )
... # The normal stuff

其结果将是一个项目,在Libs.sln和Appsln以下的名录中。

Added Bonus: 你们只能进入图书馆名录,可以从那里操作CMake,因为有自己的CMakeList.txt。

洞穴:你需要设立各种CMakeList。 您的校准和校服,以便找到图书馆。

问题回答

暂无回答




相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

热门标签