cmake_minimum_required(VERSION 2.8.8) project(BUGTEST) find_package(Qt4 REQUIRED QtCore) include(${QT_USE_FILE}) add_executable(bugtest main.cpp) target_link_libraries(bugtest ${QT_LIBRARIES}) install(TARGETS bugtest DESTINATION bin) include(DeployQt4) install_qt4_executable(bugtest)