Passer `-std = c ++ 11` aux CMakeLists?

Je viens d'installer Qt Creator et je suis à l'aide de C++11 de la syntaxe.

Malheureusement, lorsque j'essaie de construire mon projet, j'obtiens:

/usr/include/c++/4.8/bits/c++0x_warning.h:32: error:
      #error This file requires compiler and library support for the ISO C++ 2011
             standard. This support is currently experimental, and must be
             enabled with the -std=c++11 or -std=gnu++11 compiler options.
      #error This file requires compiler and library support for the \
       ^

Puis un tas d'erreurs comme "tuple pas un membre de std".

Mon CMakeLists.txt contient:

project(routing_tests)
set(QMAKE_CXXFLAGS "-std=c++11")
cmake_minimum_required(VERSION 2.8)
aux_source_directory(. SRC_LIST)
add_executable(${PROJECT_NAME} ${SRC_LIST})

EDIT: un petit test de cas montrant la question https://gist.github.com/anonymous/8171073

source d'informationauteur A T