[CMake] Setting subsystem:windows

Amitha Perera amitha-cmake at thepereras.org
Thu Mar 20 14:42:50 EDT 2008


Olivier Tournaire wrote:
 > I am currently trying to build a win32 app. However, I am not able to
 > set in the CMakeLists.txt the subsystem for visual c++. It is, by
 > default, set to subsystem:console.

$ /usr/bin/cmake --help-command add_executable
[...]
          ADD_EXECUTABLE(exename [WIN32] [MACOSX_BUNDLE] [...]

    [...]  WIN32 indicates that the executable (when compiled on
    windows) is a windows app (using WinMain) not a console app
    (using main).

Amitha.



More information about the CMake mailing list