0

Is it possible to create two different exe from visual studio solution

Hi Can we create two different applications as output of Visual Studio Solution? We need (say for example) add.exe and multiply.exe based on some preprocessor definition value. Is it possible to have two different configurations one responsible to have addition and other for subtraction. Any thought on how to achieve the same will be of great help. Thanks in advance....!

10th Dec 2021, 5:32 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
3 Réponses
+ 2
You could use a build tool like CMake to generate multiple projects from a single code base. You can then also load CMake project into visual studio which is useful as well checkout the add_executable() function in CMake
11th Dec 2021, 3:12 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Thank you
10th Dec 2021, 6:26 PM
Ketan Lalcheta
Ketan Lalcheta - avatar