[CMake] basic problems using Qt4

Wasilios Goutas wasili at goutas.de
Thu Jun 10 17:31:51 EDT 2010


Hi,

I try to create MinGW Makefiles for a Qt based application.
The problem I get is that
FIND_PACKAGE(Qt4 REQUIRED)
generates Makefeiles where the include path is expanded to a file and 
not to a directory

in CMakeDirectoryInformation.cmake  I can find this lines
...
SET(CMAKE_C_INCLUDE_PATH
   "c:/Programme/CMake 2.8/share/cmake-2.8/Modules/UseQt4.cmake"
   )
SET(CMAKE_CXX_INCLUDE_PATH ${CMAKE_C_INCLUDE_PATH})
....

which results in a build error
c:\projects\cmake_test>mingw32-make
[100%] Building CXX object noop/CMakeFiles/noop.dir/noop.cpp.obj
cc1plus.exe: 
c:/PROGRA~1/CMAKE2~1.8/share/cmake-2.8/Modules/USEQT4~1.CMA: not a directory
mingw32-make[2]: *** [noop/CMakeFiles/noop.dir/noop.cpp.obj] Error 1
mingw32-make[1]: *** [noop/CMakeFiles/noop.dir/all] Error 2
mingw32-make: *** [all] Error 2


I attached an archive containig the files I used for my tests.

What I'm I doing wrong?

Thanks
Wasili

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_test.zip
Type: application/octet-stream
Size: 2687 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100610/b97e4e6b/attachment-0001.obj>


More information about the CMake mailing list