From kde-devel Thu Nov 23 14:57:55 2006 From: "Jure Repinc" Date: Thu, 23 Nov 2006 14:57:55 +0000 To: kde-devel Subject: Problem with CMake and *.ui files Message-Id: <63711.89.212.91.146.1164293875.squirrel () 89 ! 212 ! 91 ! 146> X-MARC-Message: https://marc.info/?l=kde-devel&m=116429571131477 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------=_20061123155755_74094" ------=_20061123155755_74094 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hi, I've just tried to use Cmake for one of my KDE projects, but I have a problem with compiling *.ui related stuff. In parsek/src folder I have mainwindow.ui and mainwindow.h (which includes ui_mainwindow.h on line 4). In CMakeLists.txt I have also added the ui files with kde4_add_ui_files macro. When I run cmake -DCMAKE_BUILD_TYPE=debugfull ../src from parsek/build folder I did get this message: Generating ui_mainwindow.h and I can see the file inside the parsek/build folder. But when I run make command I get this error: In file included from /home/kde4devel/programming/parsek/src/parsek.cpp:7: /home/kde4devel/programming/parsek/src/mainwindow.h:4:27: error: ui_mainwindow.h: No such file or director What could be wrong? I've attached my CMakeLists.txt file. -- JLP's Blog - http://jlp.holodeck1.com/blog/ ------=_20061123155755_74094 Content-Type: text/plain; name="CMakeLists.txt" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="CMakeLists.txt" project( parsek ) find_package( KDE4 REQUIRED ) INCLUDE_DIRECTORIES( ${KDE4_INCLUDES} ) set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) include_directories( ${KDE4_INCLUDE_DIRS}) add_definitions( ${KDE4_DEFINITIONS} ) set( parsekSources parsek.cpp mainwindow.cpp) kde4_add_ui_files( parsekSources mainwindow.ui connecttoserverdialog.ui ) kde4_automoc( ${parsekSources} ) kde4_add_executable( parsek ${parsekSources} ) target_link_libraries( parsek ${KDE4_KDEUI_LIBS} ) ------=_20061123155755_74094 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << ------=_20061123155755_74094--