Hi, folks
Iam using cmake-2.6.0 and there is somthing wrong...
QT_WRAP_UI generates no File, so I can't compile my souce code.
Here is my CMakeLists.txt
###snip###
PROJECT( dummy )
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
#set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" )
FIND_
On 02.08.08 11:23:43, Jan Dinger wrote:
> Hi, folks
>
> Iam using cmake-2.6.0 and there is somthing wrong...
>
> QT_WRAP_UI generates no File, so I can't compile my souce code.
> IF(QT_WRAP_CPP)
> IF (QT_WRAP_UI)
> QT4_WRAP_UI(DUMMY_UIS_HDRS ${DUMMY_UIS} )
> QT4_WRAP_CPP(
Jan,
I think that you are doing some mistakes.
A Dissabte 02 Agost 2008, Jan Dinger va escriure:
> ###snip###
> PROJECT( dummy )
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
>
> #set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" )
>
> FIND_PACKAGE( Qt4 REQUIRED )
> IF(QT_FOUND)
>
Hello,
sorry, but it don't works, same error. I've no idea what I can do. I've toke
a look at other QtApps that use cmake, I can't see any mistakes in my
CMakeLists.txt (after changes by Leo).
I've uploaded my dummy program, this is only a test program. All needed
files included. I hope someone h
Couple of things:
_I_ suggest adding the following to your CMakeLists.txt file:
# -- Setup output Directories -
SET (LIBRARY_OUTPUT_PATH
${PROJECT_BINARY_DIR}/Bin
CACHE PATH
"Single Directory for all Libraries"
)
# - Setup the Executable output D
Compiled and executed.
I have _only_ changed two lines. The first one as Mike has said:
> Also, in your mainwindow.h and loginwindow.h files you have something
> like:
>
> #include "../../build/ui_mainwindow.h"
to
#include "ui_mainwindow.h"
the second one, the importand as Mike has said (again
Special thanks at all. It works fine without any error or warning.
so long
jd
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake