Hi folks,

I'll compiling my application with cmake. I've read some tutorials and the wiki article:
http://wiki.qtcentre.org/index.php?t...pps_with_CMake

If I tested cmake it brokes down with some errors:
Qt Code:
  1. RegularExpression::compile(): Nested *?+.
  2. RegularExpression::compile(): Error in compile.
  3. CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1003 (IF):
  4. if had incorrect arguments: CMAKE_CURRENT_BINARY_DIR MATCHES
  5. "${_checkinfile}" (Regular expression "/home/jan/workspace/c++/dummy/src/l"
  6. cannot compile).
  7. Call Stack (most recent call first):
  8. /usr/share/cmake-2.6/Modules/FindQt4.cmake:1076 (QT4_MAKE_OUTPUT_FILE)
  9. CMakeLists.txt:37 (QT4_WRAP_CPP)
  10.  
  11.  
  12. RegularExpression::compile(): Nested *?+.
  13. RegularExpression::compile(): Error in compile.
  14. CMake Error at /usr/share/cmake-2.6/Modules/FindQt4.cmake:1003 (IF):
  15. if had incorrect arguments: CMAKE_CURRENT_BINARY_DIR MATCHES
  16. "${_checkinfile}" (Regular expression "/home/jan/workspace/c++/dummy/src/m"
  17. cannot compile).
  18. Call Stack (most recent call first):
  19. /usr/share/cmake-2.6/Modules/FindQt4.cmake:1076 (QT4_MAKE_OUTPUT_FILE)
  20. CMakeLists.txt:37 (QT4_WRAP_CPP)
  21.  
  22.  
  23. CMake Error: Attempt to add a custom rule to output "/home/jan/workspace/c++/dummy/build/ui_mainwindow.h.rule" which already has a custom rule.
  24. -- Configuring done
To copy to clipboard, switch view to plain text mode 

My theorie is, the path is too long...

here is my CMakeLists.txt:
Qt Code:
  1. SET( DUMMY_SRCS
  2. ./src/main.cpp
  3. ./src/logindialog/logindialog.cpp
  4. ./src/mainwindow/mainwindow.cpp
  5. )
  6.  
  7. SET( DUMMY_MOC_HDRS
  8. ./src/logindialog/logindialog.h
  9. ./src/mainwindow/mainwindow.h
  10. )
  11.  
  12. SET( DUMMY_UIS
  13. ./ui/logindialog.ui
  14. ./ui/mainwindow.ui
  15. )
  16.  
  17. SET( DUMMY_RCS
  18. ./images/dummy.qrc
  19. )
  20.  
  21. ADD_DEFINITIONS( -Wall )
  22.  
  23. SET( QT_USE_QTSQL TRUE )
  24.  
  25. FIND_PACKAGE( Qt4 REQUIRED )
  26.  
  27. INCLUDE( ${QT_USE_FILE} )
  28.  
  29. QT4_ADD_RESOURCES( DUMMY_RC_SRCS ${DUMMY_RCS} )
  30.  
  31. QT4_WRAP_UI( DUMMY_UI_HDRS ${DUMMY_UIS} )
  32.  
  33. QT4_WRAP_CPP( DUMMY_MOC_SRCS ${DUMMY_MOC_HDRS} )
To copy to clipboard, switch view to plain text mode 

Can someone help me to fix my proplem?