751:9c104f2f1327 | 752:aaad6674a1a3 |
---|---|
1 cmake_minimum_required(VERSION 3.14) | 1 cmake_minimum_required(VERSION 3.14) |
2 project(ucx VERSION 3.0 DESCRIPTION "UAP Common Extensions") | 2 project(ucx VERSION 3.0 DESCRIPTION "UAP Common Extensions" LANGUAGES C) |
3 | 3 |
4 # Configuration | 4 # Configuration |
5 cmake_policy(SET CMP0077 NEW) | 5 cmake_policy(SET CMP0077 NEW) |
6 set(CMAKE_C_STANDARD 11) | 6 set(CMAKE_C_STANDARD 11) |
7 set(CMAKE_C_STANDARD_REQUIRED 11) | 7 set(CMAKE_C_STANDARD_REQUIRED 11) |
13 | 13 |
14 # Library | 14 # Library |
15 add_subdirectory(src) | 15 add_subdirectory(src) |
16 | 16 |
17 # Tests | 17 # Tests |
18 enable_testing() | 18 include(CheckLanguage) |
19 add_subdirectory(tests) | 19 check_language(CXX) |
20 if (CMAKE_CXX_COMPILER) | |
21 enable_language(CXX) | |
22 enable_testing() | |
23 add_subdirectory(tests) | |
24 else () | |
25 message(STATUS "No C++ compiler found - tests are not compiled.") | |
26 endif () | |
20 | 27 |
21 # Web Documentation | 28 # Web Documentation |
22 add_subdirectory(docs/src) | 29 add_subdirectory(docs/src) |
23 | 30 |
24 # API Documentation | 31 # API Documentation |