PROJECT(qtd CXX C)cmake_minimum_required(VERSION 2.6)FIND_PACKAGE(Qt4 REQUIRED)include_directories(${QT_INCLUDES} include)INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/cpp/qt_core/local.cmake)INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/cpp/qt_gui/local.cmake)INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/cpp/qt_opengl/local.cmake)ADD_LIBRARY(qtd_cpp SHARED ${QT_QTD_SRCS} ${QT_CORE_SRCS} ${QT_GUI_SRCS})TARGET_LINK_LIBRARIES( qtd_cpp ${QT_LIBRARIES} )