Hello CMake guys...<div><br></div><div>Well, I was writing a portable program using CMake that uses Qt as it&#39;s GUI framework...</div><div><br></div><div>I compiled it on linux and it worked really well, no problems. But when compiling on Windows, the program opened a blank bash screen before opening the proper gui. I thought that this could be with Qt itself, but when I tried with qmake, the program runned normally, without any bash screen opening...</div>
<div><br></div><div>I used the Visual C++ Express 2008 to compile, with Qt libraries 4.7.4 for the Visual 2008. Here is the CMakeLists.txt:</div><div><br></div><div><div>project(test CXX)</div><div>cmake_minimum_required(VERSION 2.8)</div>
<div>find_package(Qt4 REQUIRED)</div><div>include(${QT_USE_FILE})</div><div>set(test_SRCS</div><div>    main.cpp</div><div>    MainWindow.cpp</div><div>)</div><div>set(test_MOC_SRCS</div><div>    MainWindow.hpp</div><div>
)</div><div><br></div><div>set(test_RCCS</div><div>    rc.qrc</div><div>)</div><div>qt4_wrap_cpp(test_MOCS ${test_MOC_SRCS})</div><div>qt4_add_resources(test_RCC_SRCS ${test_RCCS})</div><div>add_definitions(-DQT_NO_DEBUG)</div>
<div>add_executable(test</div><div>    ${test_SRCS}</div><div>    ${test_MOCS}</div><div>    ${test_RCC_SRCS})</div><div>target_link_libraries(test ${QT_LIBRARIES})</div></div><div><br></div><div>If there is any solution to this I would be very grateful, because I really want to use CMake.</div>
<div><br></div><div><br></div><div>Thanks!</div><div><br></div><div><br></div><div>Renato</div>