wiki:FAQ_general_tips

Version 2 (modified by phudelai, 10 years ago) ( diff )

--

Contents

  1. FAQ -- common tips
    1. Compilation without console in Microsoft Windows using CMake

FAQ -- common tips

Compilation without console in Microsoft Windows using CMake

Solution

Add in your CMakeLists.txt :

IF(WIN32)
	LINK_LIBRARIES(${QT_QTMAIN_LIBRARY})
	SET(GUI_TYPE WIN32)
ENDIF(WIN32)
Note: See TracWiki for help on using the wiki.