On 06/10/2010 04:31 PM, Wasilios Goutas wrote:
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
Didn't download the code, but from the error it looks like you're doing
include_directories("${QT_USE_FILE}") # Add the use file to the include
path when compiling
when you should be doing
include("${QT_USE_FILE}") # include the cmake code in the file
"${QT_USE_FILE}
Hope this helps!
Ryan
--
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University
rpav...@iastate.edu
http://academic.cleardefinition.com
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake