[vtkusers] How to hide the console for a VTK/Qt app
Bill Hoffman
bill.hoffman at kitware.com
Tue Apr 7 13:47:18 EDT 2009
John Drescher wrote:
>
> if(WIN32)
> set_target_properties(WindowApplicationExample PROPERTIES
> LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")
> set_target_properties(WindowApplicationExample PROPERTIES
> RELWITHDEBINFO "/SUBSYSTEM:CONSOLE")
> set_target_properties(WindowApplicationExample PROPERTIES
> LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
> set_target_properties(WindowApplicationExample PROPERTIES
> MINSIZEREL "/SUBSYSTEM:WINDOWS")
> endif(WIN32)
>
>
Or, you can do this: add_executable(myexe WIN32 myexe.cxx) See the
documentation for add_executable.
-Bill
More information about the vtkusers
mailing list