From: Branan R. <br...@gm...> - 2008-09-09 15:59:23
|
I'm at work so I can't make a patch right now, but here's the CMake code to make a win32 GUI-app use main() as the entry point: IF(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") SET_TARGET_PROPERTIES(<exename> PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup") ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") These lines needsto be added after the ADD_EXECUTABLE call in all the examples. I can do it and make a patch when I get home tonight (about 8.5-9 hours), if no one gets to it by then. |