Re: [CMake] WIN32_EXECUTABLE - Config specific settings for visual studio generated project files?

2008-10-07 Thread Stefan Buschmann
Don't forget to add the preprocessor definition as well, because this might be used in some header files to check whether a WINDOWS or a CONSOLE app is going to be compiled. I test for this definition in my own project, and it might be even used inside the Windows headers, so this should always

Re: [CMake] WIN32_EXECUTABLE - Config specific settings for visual studio generated project files?

2008-10-07 Thread Michael Jackson
Thought this was handy enough to add a wiki entry: http://www.cmake.org/Wiki/VSConfigSpecificSettings Mike On Oct 7, 2008, at 12:49 AM, Jason Eubank wrote: Thanks Stefan, this worked well. My exact usage using your recommendations was as follows: if(WIN32) set_target_properties(WindowApp

Re: [CMake] WIN32_EXECUTABLE - Config specific settings for visual studio generated project files?

2008-10-06 Thread Jason Eubank
Thanks Stefan, this worked well. My exact usage using your recommendations was as follows: if(WIN32) set_target_properties(WindowApplicationExample PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE") set_target_properties(WindowApplicationExample PROPERTIES RELWITHDEBINFO "/SUBSYSTEM:CONSOL

Re: [CMake] WIN32_EXECUTABLE - Config specific settings for visual studio generated project files?

2008-10-06 Thread Stefan Buschmann
Jason Eubank schrieb: Hello, I am wondering if it is possible to set the target property 'WIN32_EXECUTABLE' on a per-config basis (i.e. you can set link-flags on a per-config basis using LINK_FLAGS_). From reading the documentation this does not seem possible and if you set this property the

[CMake] WIN32_EXECUTABLE - Config specific settings for visual studio generated project files?

2008-10-05 Thread Jason Eubank
Hello, I am wondering if it is possible to set the target property ' WIN32_EXECUTABLE' on a per-config basis (i.e. you can set link-flags on a per-config basis using LINK_FLAGS_). From reading the documentation this does not seem possible and if you set this property then all configurations (in Vi