File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed
tests/beman/inplace_vector Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 55
66cmake_minimum_required(VERSION 3.23)
77
8- option(BUILD_TESTING "Build tests" ON)
9-
108project(
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+
2530include (GNUInstallDirs)
2631
2732add_library(beman.inplace_vector INTERFACE)
33+ # [CMAKE.LIBRARY_ALIAS]
34+ add_library(beman ::inplace_vector ALIAS beman.inplace_vector)
35+
2836target_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)
5563endif()
5664
5765if(BEMAN_EXEMPLAR_BUILD_EXAMPLES)
Original file line number Diff line number Diff line change 22SPDX-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.
You can’t perform that action at this time.
0 commit comments