简体   繁体   中英

Compiling and using multiple projects for a single solution in Visual Studio

I am using Visual Studio 2015 Community Edition. I am attempting to build a very basic game engine. I would like to keep the Core part of the engine separate from the physics and rendering code. I know how to add the secondary Physics and Renderer projects to the main Core solution. But, how do I set up the relationship, and how do I access the Renderer and the Physics files in the Core part of the solution? Are there any necessary changes that I need to make to the project properties such as the Linker and VC++ Directories?

<project name> (Core)
  <solution1> (Core project)
  <solution2> (Physics)
  <solution3> (Renderer)

In core project you want to use Physics and Renderer. To link projects between them go to Core project -> options -> common properties -> references -> add new reference -> check Physics and Renderer after this make that setting from Linker and VC++ Directories ( C/C++ - > general -> additional include directories and Linker - > general -> additional include directories and Linker - > general -> input -> additional dependencies

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM