Oleg Vazhnev
Oleg Vazhnev

Reputation: 24057

how to make visual studio project portable? (where to set includes/libs/preprocessor definitions etc.)

In Visual Studio 2012 I have native C++ project. There are a lot of settings in "Properties" page of this project:

Later I need to migrate to Linux, and of course I need this settings too. Obviosly Visual Studio project can not be used in Linux

Can you suggest another, platform-independent, mechanism of declaring Additional Include Directories/Preprocessor definitions/Additional Library Dependencies etc. so I can migrate to Linux easier?

Upvotes: 0

Views: 1702

Answers (1)

Niko
Niko

Reputation: 26730

cmake might fit your needs: it's a cross platform build system that allows to configure your project in a compiler-independent way. For Windows, it is then able to generate Visual Studio Project files based on that configuration.

Upvotes: 2

Related Questions