[cmake-developers] flags if target is add_executable( WIN32 )

Stephen Kelly stephen.kelly at kdab.com
Wed Aug 8 03:28:15 EDT 2012


On Tuesday, August 07, 2012 13:45:37 J Decker wrote:
> which means revisiting each and every project that generates an
> exectuable.... could even make a add_program macro or something that
> would handle it.

Since CMake 2.8.8 you can set the variable CMAKE_WIN32_EXECUTABLE to set the 
default value you want for the WIN32_EXECUTABLE property.

http://www.cmake.org/cmake/help/v2.8.8/cmake.html#variable:CMAKE_WIN32_EXECUTABLE

There is a similar property for MACOSX_BUNDLE targets.

http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/2920

Thanks,

-- 
Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120808/f9fa6a7d/attachment.sig>


More information about the cmake-developers mailing list