# minimum required version for certain qt include functionality cmake_minimum_required(VERSION 2.8.11) # project name project(QmlBug) set(QML_IMPORT_PATH "C:/Qt/Qt5.2.0/5.2.0/msvc2012_64_opengl/imports:C:/Qt/Qt5.2.0/5.2.0/msvc2012_64_opengl/qml") set(QML2_IMPORT_PATH ${QML_IMPORT_PATH}) add_definitions(-DQML_IMPORT_PATH=${QML_IMPORT_PATH}) add_definitions(-DQML2_IMPORT_PATH=${QML2_IMPORT_PATH}) add_executable(QmlBug main.cpp main.qml)