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)

> Lastly, you had a typo in this line
> ADD_EXECUTABLE( dummy ${DUMMY_SRCS} ${DUMMY_MOC_SRCS} $
> {DUMMY_RC_SRCS} ${DUMMY_UI_HDRS} )
>
> It should be:
>
> ADD_EXECUTABLE( dummy ${DUMMY_SRCS} ${DUMMY_MOC_SRCS} $
> {DUMMY_RC_SRCS} ${DUMMY_UIS_HDRS} )
                                                           ^

I have this program running.

Hope this helps.

Leo


A Dissabte 02 Agost 2008, Mike Jackson va escriure:
> 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 Directory -------------
> SET (EXECUTABLE_OUTPUT_PATH
>    ${PROJECT_BINARY_DIR}/Bin
>    CACHE PATH
>    "Single Directory for all Executables."
>    )
>
> just AFTER the
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
>
>
> Also, in your mainwindow.h and loginwindow.h files you have something
> like:
>
> #include "../../build/ui_mainwindow.h"
>
> change that to:
>
> #include "ui_mainwindow.h"
>
> Lastly, you had a typo in this line
> ADD_EXECUTABLE( dummy ${DUMMY_SRCS} ${DUMMY_MOC_SRCS} $
> {DUMMY_RC_SRCS} ${DUMMY_UI_HDRS} )
>
> It should be:
>
> ADD_EXECUTABLE( dummy ${DUMMY_SRCS} ${DUMMY_MOC_SRCS} $
> {DUMMY_RC_SRCS} ${DUMMY_UIS_HDRS} )
>
> After all that the ui_* files will be generated. Still doesn't
> compile but I'll let you figure that part out.
>
> Cheers



-- 
--
Linux User 152692
PGP: 0xF944807E
Catalonia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to