Require C++11

Required for easier implementation of more features
This commit is contained in:
Flamefire 2019-11-10 12:03:01 +01:00
parent bd47edcbe5
commit e5967608f8

View file

@ -1,10 +1,13 @@
cmake_minimum_required (VERSION 3.0.2)
cmake_minimum_required (VERSION 3.1.3)
project (utf8cpp VERSION 3.1 LANGUAGES CXX)
option(UTF8_TESTS "Enable tests for UTF8-CPP" On)
option(UTF8_INSTALL "Enable installation for UTF8-CPP" On)
option(UTF8_SAMPLES "Enable building samples for UTF8-CPP" On)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_library(utf8cpp INTERFACE)
target_include_directories(utf8cpp INTERFACE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/source>"