<div dir="ltr">Hello,<br><br>sorry, but it don&#39;t works, same error. I&#39;ve no idea what I can do. I&#39;ve toke a look at other QtApps that use cmake, I can&#39;t see any mistakes in my CMakeLists.txt (after changes by Leo). <br>
<br>I&#39;ve uploaded my dummy program, this is only a test program. All needed files included. I hope someone has time to test it, than we can locate the error, because I hope this was my mistake and not a bug.<br><br>Cmake is a nice tool but I don&#39;t understand the logic. This error is unbelievable, other qtApps use cmake too. <br>
If cmake don&#39;t work with my small dummy program I can&#39;t use it on my projects...<br><br>Here you can download my test program: <a href="http://www.jan-fox.org/downloads/dummy.tar.gz">http://www.jan-fox.org/downloads/dummy.tar.gz</a><br>
<br>If there someone to can&#39;t test it here is the new CMakeLists.txt:<br><br>###snip###<br>PROJECT( dummy )<br><br>CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)<br><br>FIND_PACKAGE( Qt4 REQUIRED )<br><br>IF(QT_QTSQL_NOTFOUND)<br>
&nbsp;&nbsp;&nbsp; MESSAGE(FATAL_ERROR &quot;Looking for QtSQL -- not found, this projects needs QTSQL&quot;)<br>ELSE(QT_QTSQL_NOTFOUND)<br>&nbsp;&nbsp;&nbsp; MESSAGE(STATUS &quot;Looking for QtSQL -- found&quot;)<br>&nbsp;&nbsp;&nbsp; set(QT_USE_QTSQL TRUE)<br>ENDIF(QT_QTSQL_NOTFOUND)<br>
<br>SET( DUMMY_SRCS<br>&nbsp;&nbsp;&nbsp; ./src/main.cpp<br>&nbsp;&nbsp;&nbsp; ./src/logindialog/logindialog.cpp<br>&nbsp;&nbsp;&nbsp; ./src/mainwindow/mainwindow.cpp<br>)<br><br>SET( DUMMY_MOC_HDRS<br>&nbsp;&nbsp;&nbsp; ./src/logindialog/logindialog.h<br>&nbsp;&nbsp;&nbsp; ./src/mainwindow/mainwindow.h<br>
)<br><br>SET( DUMMY_UIS<br>&nbsp;&nbsp;&nbsp; ./ui/logindialog.ui<br>&nbsp;&nbsp;&nbsp; ./ui/mainwindow.ui<br>)<br><br>SET( DUMMY_RCS<br>&nbsp;&nbsp;&nbsp; ./images/dummy.qrc<br>)<br><br>ADD_DEFINITIONS( -Wall )<br><br>INCLUDE( ${QT_USE_FILE} )<br><br>INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})<br>
<br>QT4_ADD_RESOURCES( DUMMY_RC_SRCS ${DUMMY_RCS} )<br><br>QT4_WRAP_CPP( DUMMY_MOC_SRCS ${DUMMY_MOC_HDRS} )<br><br>QT4_WRAP_UI(DUMMY_UIS_HDRS ${DUMMY_UIS} )<br><br>ADD_EXECUTABLE( dummy ${DUMMY_SRCS} ${DUMMY_MOC_SRCS} ${DUMMY_RC_SRCS}<br>
${DUMMY_UI_HDRS} )<br><br>TARGET_LINK_LIBRARIES( dummy ${QT_LIBRARIES} )<br>###snap###<br><br>Special thanks at all <br><br>so long<br>jd<br></div>