mirror of https://github.com/qt/qtdoc.git
Tweak CMake "hello world"
Follow the advise from "Professional CMake: A practical guide" and
set the VERSION and LANGUAGES for the project explicitly.
Finally, do explicitly require C++11.
Change-Id: I81eab1abf2bddb0519216bdc0d633e2d00b6b289
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit a1d67257ec
)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b452310a13
commit
684cf652c8
|
@ -1,7 +1,10 @@
|
|||
#! [0]
|
||||
cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
project(helloworld)
|
||||
project(helloworld VERSION 1.0.0 LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
|
Loading…
Reference in New Issue