Skip to content

Commit 55656b4

Browse files
authored
Merge pull request #24 from wusatosi/test-dir
Apply beman standard.
2 parents 92aa848 + d6a24d5 commit 55656b4

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
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
@@ -15,9 +13,19 @@ project(
1513
LANGUAGES CXX
1614
)
1715

16+
# [CMAKE.SKIP_TESTS]
17+
option(
18+
BEMAN_INPLACE_VECTOR_BUILD_TESTS
19+
"Enable building tests and test infrastructure. Default: ON. Values: { ON, OFF }."
20+
${PROJECT_IS_TOP_LEVEL}
21+
)
22+
1823
include(GNUInstallDirs)
1924

2025
add_library(beman.inplace_vector INTERFACE)
26+
# [CMAKE.LIBRARY_ALIAS]
27+
add_library(beman::inplace_vector ALIAS beman.inplace_vector)
28+
2129
target_include_directories(
2230
beman.inplace_vector
2331
INTERFACE
@@ -42,7 +50,7 @@ install(
4250
"${CMAKE_CURRENT_SOURCE_DIR}/include/beman/inplace_vector/inplace_vector.hpp"
4351
)
4452

45-
if(BUILD_TESTING)
53+
if(BEMAN_INPLACE_VECTOR_BUILD_TESTS)
4654
include(CTest)
47-
add_subdirectory(src/beman/inplace_vector/tests)
55+
add_subdirectory(tests/beman/inplace_vector)
4856
endif()

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
SPDX-License-Identifier: <SPDX License Expression>
33
-->
44

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

77
![Continuous Integration Tests](https://github.com/bemanproject/inplace_vector/actions/workflows/ci_tests.yml/badge.svg)
88
![Code Format](https://github.com/bemanproject/inplace_vector/actions/workflows/pre-commit.yml/badge.svg)
99

10-
A dynamically-resizable vector with fixed capacity and embedded storage
11-
1210
## Implements
1311

1412
- [`inplace_vector` P0843R14](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p0843r14.html)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)