简体   繁体   English

使用CMake构建后,如何在Visual Studio中创建项目以使用OpenMesh?

[英]How do I create a project in Visual Studio to use OpenMesh after I've built using CMake?

I followed the directions for compiling OpenMesh on Compiling OpenMesh Using CMake for Windows. 在Windows上使用CMake编译OpenMesh时,我遵循了编译OpenMesh的说明。 I've went so far as to Configure and Generate. 我已经进行过配置和生成。 So I now have the OpenMesh.sln file. 现在,我有了OpenMesh.sln文件。 However, I don't know what the directions mean by "build OpenMesh from within Visual Studio using the newly created project file." 但是,我不知道“使用新创建的项目文件在Visual Studio中构建OpenMesh”的含义是什么。

If anyone could explain the rest of this process to me. 如果有人可以向我解释此过程的其余部分。 I'm not terribly tech-savvy when it comes to this setup part of the process. 对于过程的此设置部分,我并不是很精通技术。

  1. Open the file using visual studio (By double clicking on it.) 使用Visual Studio打开文件(通过双击它。)

  2. Once visual studio opens find the Build tab at the top of the window. Visual Studio打开后,在窗口顶部找到“ Build选项卡。

  3. Hit the build solution button and wait for the compiler to finish. 点击build solution按钮,然后等待编译器完成。

To change the build configuration find the drop down menu beside the Local Windows Debugger button. 要更改构建配置,请找到“ Local Windows Debugger按钮旁边的下拉菜单。 It should say Debug , click on it and select the option that you wish to use. 它应该显示Debug ,单击它,然后选择要使用的选项。 For a solution created using CMake the options will usually be Debug , MinSizeRel , Release or RelWithDebInfo . 对于使用CMake创建的解决方案,选项通常为DebugMinSizeRelReleaseRelWithDebInfo You probably want to compile for at least Debug and Release . 您可能至少要进行DebugRelease编译。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 Visual Studio 2019 在 cmake 项目中使用库(dll/lib) - how do you use libraries (dll/lib) in a cmake project using visual studio 2019 如何从现有的 visual studio CPP 项目创建 Cmake 文件? - How Can I create a Cmake file from existing visual studio CPP project? 如何使用cmake(和visual studio)为qt设计器创建自定义(小部件)插件 - how do i create a custom (widget) plugin for qt designer with cmake ( and visual studio ) 我如何分发使用cmake构建的静态库 - how do i distribute static library built using cmake 带有cmake的Visual Studio 2013中的Qt-如何使它工作? - Qt in Visual Studio 2013 with cmake - how do I get this to work? Visual Studio 2017 CMake 项目中缺少 VCRUNTIME140_1D.dll - 我是否也需要 Visual Studio 2019 并在旧版本的 Studio 中使用它? - VCRUNTIME140_1D.dll missing in Visual Studio 2017 CMake project - do I need Visual Studio 2019 too and use it in older version of Studio? 如何启用Visual Studio 2008中的SSE / SSE2指令集(使用CMake)? - How do I enable the SSE/SSE2 instruction set in Visual Studio 2008 (using CMake)? 如何在 Visual Studio 中使用 cURLpp? - How do I use cURLpp with Visual Studio? 如何正确使用选项和标志来更改 OpenMesh 中的 read_mesh 和 write_mesh 函数? - How do I correctly use Options and Flags to alter the read_mesh and write_mesh functions in OpenMesh? 如何告诉Android Studio将GCC 4.9与CMake一起使用? - How do I tell Android Studio to use GCC 4.9 with CMake?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM