Is there a easier way?
How about defining a build target for each platform?
So, you only need to select the proper target when compiling your sources.
Regards.
PS/ It's exactly the same way when you want to compile against different wxWidgets builds (unicode/ansi, static/shared, ...)