Skip to content

Commit 83d4887

Browse files
authored
Merge branch 'main' into example-fib
2 parents a0c338f + 55656b4 commit 83d4887

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

CMakeLists.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
cmake_minimum_required(VERSION 3.23)
77

8-
option(BUILD_TESTING "Build tests" ON)
9-
108
project(
119
beman.inplace_vector
1210
VERSION 1.0.0
@@ -22,9 +20,19 @@ option(
2220
${PROJECT_IS_TOP_LEVEL}
2321
)
2422

23+
# [CMAKE.SKIP_TESTS]
24+
option(
25+
BEMAN_INPLACE_VECTOR_BUILD_TESTS
26+
"Enable building tests and test infrastructure. Default: ON. Values: { ON, OFF }."
27+
${PROJECT_IS_TOP_LEVEL}
28+
)
29+
2530
include(GNUInstallDirs)
2631

2732
add_library(beman.inplace_vector INTERFACE)
33+
# [CMAKE.LIBRARY_ALIAS]
34+
add_library(beman::inplace_vector ALIAS beman.inplace_vector)
35+
2836
target_include_directories(
2937
beman.inplace_vector
3038
INTERFACE
@@ -49,9 +57,9 @@ install(
4957
"${CMAKE_CURRENT_SOURCE_DIR}/include/beman/inplace_vector/inplace_vector.hpp"
5058
)
5159

52-
if(BUILD_TESTING)
60+
if(BEMAN_INPLACE_VECTOR_BUILD_TESTS)
5361
include(CTest)
54-
add_subdirectory(src/beman/inplace_vector/tests)
62+
add_subdirectory(tests/beman/inplace_vector)
5563
endif()
5664

5765
if(BEMAN_EXEMPLAR_BUILD_EXAMPLES)

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
SPDX-License-Identifier: <SPDX License Expression>
33
-->
44

5-
# beman.inplace\_vector
5+
# beman.inplace\_vector: Dynamically-resizable vector with fixed capacity
66

7-
![Continuous Integration Tests](https://github.com/beman-project/inplace_vector/actions/workflows/ci_tests.yml/badge.svg)
8-
![Code Format](https://github.com/beman-project/inplace_vector/actions/workflows/pre-commit.yml/badge.svg)
9-
10-
A dynamically-resizable vector with fixed capacity and embedded storage
7+
![Continuous Integration Tests](https://github.com/bemanproject/inplace_vector/actions/workflows/ci_tests.yml/badge.svg)
8+
![Code Format](https://github.com/bemanproject/inplace_vector/actions/workflows/pre-commit.yml/badge.svg)
119

1210
## Implements
1311

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)