Update CMake template for console projects to newer standards

Add version information as well as limit the supported languages to C++.

Change-Id: I7a931139c6eb1a4457a89925fc7497c754184833
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Tobias Hunger
2018-07-18 16:25:54 +02:00
parent 1958c2129e
commit 9f8dbc1d2f

View File

@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.0.0)
project(%{ProjectName})
project(%{ProjectName} VERSION 0.1 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)