[CMake] Executable extension (MSVC)

PCJohn peciva at fit.vutbr.cz
Thu May 15 06:54:36 EDT 2008


 > Use the WIN32 option of the add_executable command:
 > http://www.cmake.org/HTML/cmake-2.6.html#command:add_executable

Thanks. For any other interested people:
- this switches using of main to WinMain
- to switch it back, you can use
set_target_properties (autoconsole
                       PROPERTIES LINK_FLAGS /ENTRY:main)

Thanks all involved people. The project compiles now and this .com & 
.exe feature will be available in the next project release together with 
cmake support.
John


Werner Smekal napsal(a):
> Hi John,
>
>> - it seems to me that cmake is building console applications by 
>> default (/SUBSYSTEM:CONSOLE).
>> That is correct for my .com applications. For the .exe, I will need 
>> WINDOWS subsystem. Any possiblities in cmake?
>>
> Use the WIN32 option of the add_executable command:
>
> http://www.cmake.org/HTML/cmake-2.6.html#command:add_executable
>
> Regards,
> Werner
>
> -- 
> Dr. Werner Smekal
> Institut fuer Allgemeine Physik
> Technische Universitaet Wien
> Wiedner Hauptstr 8-10
> A-1040 Wien
> Austria
>
> email: smekal at iap.tuwien.ac.at
> web: http://www.iap.tuwien.ac.at/~smekal
> phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory)
> fax: +43-(0)1-58801-13499
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list