Mercurial > thymian
annotate 3rdparty/vmime/cmake/cmake-cxx11/Tests/Module/CXX11Features/CMakeLists.txt @ 0:a4671277546c tip
created the repository for the thymian project
| author | ferencd |
|---|---|
| date | Tue, 17 Aug 2021 11:19:54 +0200 |
| parents | |
| children |
| rev | line source |
|---|---|
| ferencd@0 | 1 cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR) |
| ferencd@0 | 2 project(Cxx11Features CXX) |
| ferencd@0 | 3 |
| ferencd@0 | 4 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../Modules") |
| ferencd@0 | 5 |
| ferencd@0 | 6 include(CheckCXX11Features) |
| ferencd@0 | 7 |
| ferencd@0 | 8 foreach (flag IN ITEMS |
| ferencd@0 | 9 HAS_CXX11_AUTO |
| ferencd@0 | 10 HAS_CXX11_AUTO_RET_TYPE |
| ferencd@0 | 11 HAS_CXX11_CLASS_OVERRIDE |
| ferencd@0 | 12 HAS_CXX11_CONSTEXPR |
| ferencd@0 | 13 HAS_CXX11_CSTDINT_H |
| ferencd@0 | 14 HAS_CXX11_DECLTYPE |
| ferencd@0 | 15 HAS_CXX11_FUNC |
| ferencd@0 | 16 HAS_CXX11_INITIALIZER_LIST |
| ferencd@0 | 17 HAS_CXX11_LAMBDA |
| ferencd@0 | 18 HAS_CXX11_LIB_REGEX |
| ferencd@0 | 19 HAS_CXX11_LONG_LONG |
| ferencd@0 | 20 HAS_CXX11_NULLPTR |
| ferencd@0 | 21 HAS_CXX11_RVALUE_REFERENCES |
| ferencd@0 | 22 HAS_CXX11_SIZEOF_MEMBER |
| ferencd@0 | 23 HAS_CXX11_STATIC_ASSERT |
| ferencd@0 | 24 HAS_CXX11_VARIADIC_TEMPLATES |
| ferencd@0 | 25 ) |
| ferencd@0 | 26 if (${flag}) |
| ferencd@0 | 27 add_definitions("-D${flag}") |
| ferencd@0 | 28 message(STATUS "Compiler C++11 support flag ${flag} set") |
| ferencd@0 | 29 endif () |
| ferencd@0 | 30 endforeach (flag) |
| ferencd@0 | 31 |
| ferencd@0 | 32 set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${CXX11_COMPILER_FLAGS}) |
| ferencd@0 | 33 add_executable(CXX11Features cxx11features.cxx) |
