project(demo1) cmake_minimum_required(VERSION 2.4.0) find_package(Qt4 REQUIRED) include(${QT_USE_FILE}) # input files SET( demo1_SRCS mainwindow1.cpp main1.cpp ) SET( demo1_MOC_HDRS mainwindow1.h ) SET( demo1_UIS mainwindow1.ui ) QT4_AUTOMOC ( ${demo1_SRCS} ) QT4_WRAP_UI ( demo1_UIS_H ${demo1_UIS} ) QT4_WRAP_CPP ( demo1_MOC_SRCS ${demo1_MOC_HDRS} ) INCLUDE_DIRECTORIES ( demo1 ${QT_INCLUDE_DIR} ) TARGET_LINK_LIBRARIES ( demo1 ${QT_LIBRARIES} ) ADD_EXECUTABLE ( demo1 ${demo1_SRCS} ${demo1_UIS_H} ${demo1_MOC_SRCS} ) elcuco@linux:~/src/svn/qtedit4/tools/qtsourceview/demos/demo1/build> elcuco@linux:~/src/svn/qtedit4/tools/qtsourceview/demos/demo1/build> elcuco@linux:~/src/svn/qtedit4/tools/qtsourceview/demos/demo1/build> cmake ../ -- Found Qt-Version 4.2.0-snapshot-20061002 CMake Error: Attempt to add link library "/usr/local/Trolltech/qt4-rsync/lib/libQtCore.so" to target "demo1" which is not built by this project. CMake Error: Attempt to add link library "-lpthread" to target "demo1" which is not built by this project. CMake Error: Attempt to add link library "dl" to target "demo1" which is not built by this project. CMake Error: Attempt to add link library "/usr/local/Trolltech/qt4-rsync/lib/libQtGui.so" to target "demo1" which is not built by this project. CMake Error: Attempt to add link library "-lSM" to target "demo1" which is not built by this project. CMake Error: Attempt to add link library "-lICE" to target "demo1" which is not built by this project. CMake Error: Attempt to add link library "/usr/X11R6/lib/libX11.so" to target "demo1" which is not built by this project. CMake Error: Attempt to add link library "/usr/X11R6/lib/libXext.so" to target "demo1" which is not built by this project. -- Configuring done elcuco@linux:~/src/svn/qtedit4/tools/qtsourceview/demos/demo1/build>