|
3 | 3 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
4 | 4 | # cmake-format: on |
5 | 5 |
|
6 | | -cmake_minimum_required(VERSION 3.25...3.31) |
| 6 | +cmake_minimum_required(VERSION 3.28...4.0) |
7 | 7 |
|
8 | | -project( |
9 | | - beman.execution |
10 | | - DESCRIPTION "Beman implementation of asynchronous components" |
11 | | - LANGUAGES CXX |
12 | | - VERSION 0.0.1 |
13 | | -) |
| 8 | +project(beman.execution DESCRIPTION "Beman implementation of asynchronous components" LANGUAGES CXX VERSION 0.0.2) |
14 | 9 |
|
15 | | -option( |
16 | | - BEMAN_EXECUTION_BUILD_TESTS |
17 | | - "Enable building tests and test infrastructure. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }." |
18 | | - ${PROJECT_IS_TOP_LEVEL} |
| 10 | +option(BEMAN_EXECUTION_BUILD_TESTS |
| 11 | + "Enable building tests and test infrastructure. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }." |
| 12 | + ${PROJECT_IS_TOP_LEVEL} |
19 | 13 | ) |
20 | | -option( |
21 | | - BEMAN_EXECUTION_BUILD_EXAMPLES |
22 | | - "Enable building examples. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }." |
23 | | - ${PROJECT_IS_TOP_LEVEL} |
| 14 | +option(BEMAN_EXECUTION_BUILD_EXAMPLES |
| 15 | + "Enable building examples. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }." ${PROJECT_IS_TOP_LEVEL} |
24 | 16 | ) |
25 | 17 | option( |
26 | | - BEMAN_EXECUTION_INSTALL_CONFIG_FILE_PACKAGE |
27 | | - "Enable creating and installing a CMake config-file package. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }." |
28 | | - ${PROJECT_IS_TOP_LEVEL} |
| 18 | + BEMAN_EXECUTION_INSTALL_CONFIG_FILE_PACKAGE |
| 19 | + "Enable creating and installing a CMake config-file package. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }." |
| 20 | + ${PROJECT_IS_TOP_LEVEL} |
29 | 21 | ) |
30 | 22 |
|
31 | 23 | add_subdirectory(src/beman/execution) |
32 | 24 |
|
| 25 | +enable_testing() |
| 26 | + |
33 | 27 | if(BEMAN_EXECUTION_BUILD_TESTS) |
34 | | - enable_testing() |
35 | 28 | add_subdirectory(tests/beman/execution) |
36 | 29 | endif() |
37 | 30 |
|
38 | 31 | if(BEMAN_EXECUTION_BUILD_EXAMPLES) |
39 | | - enable_testing() |
40 | 32 | add_subdirectory(examples) |
41 | 33 | endif() |
0 commit comments