Is it possible to update a project to change from exe to lib depending on if it is set as the startup project?
ie:
- Project: Foo
- Project: Foo-Unit-tests
using the Pimpl idiom I'm getting link errors if foo is an .exe. Changing it to .lib resolves everything.
So what I'm aiming for is if it is possible to have it that the:
Project>Properties>Configuration Properties>General>[Configuration Type]: = Static library (.lib)
- When project Foo-Unit-tests is the startup project. (FOO = .lib)
- IF the project: Foo is the startup project, have it set to Application (.exe) instead.
Is there some command line prompts that could allow for this or some settings that can be configured to do this?