Cross platform console app structure - Separate projects for windows and linux?

  • Thread starter Thread starter JerryWiltse
  • Start date Start date
J

JerryWiltse

Guest
When using CMake to write a cross-platform application, I have one codebase, and then Cmake compiles the codebase for the target architecture when i tell it to compile.

I'm new to VS for C++, but it looks like the "recommended" approach to making a cross-platform application is two create one project for each OS. In each such project, you can have configurations for different architectures, but you basically need at least 2 projects. If you want to share code, you need a third project using the "shared items" project type. Is this correct?

Continue reading...
 
Back
Top