Skip to content

Commit

Permalink
Merge branch 'main' into example-fib
Browse files Browse the repository at this point in the history
  • Loading branch information
wusatosi authored Nov 20, 2024
2 parents a0c338f + 55656b4 commit 83d4887
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
16 changes: 12 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

cmake_minimum_required(VERSION 3.23)

option(BUILD_TESTING "Build tests" ON)

project(
beman.inplace_vector
VERSION 1.0.0
Expand All @@ -22,9 +20,19 @@ option(
${PROJECT_IS_TOP_LEVEL}
)

# [CMAKE.SKIP_TESTS]
option(
BEMAN_INPLACE_VECTOR_BUILD_TESTS
"Enable building tests and test infrastructure. Default: ON. Values: { ON, OFF }."
${PROJECT_IS_TOP_LEVEL}
)

include(GNUInstallDirs)

add_library(beman.inplace_vector INTERFACE)
# [CMAKE.LIBRARY_ALIAS]
add_library(beman::inplace_vector ALIAS beman.inplace_vector)

target_include_directories(
beman.inplace_vector
INTERFACE
Expand All @@ -49,9 +57,9 @@ install(
"${CMAKE_CURRENT_SOURCE_DIR}/include/beman/inplace_vector/inplace_vector.hpp"
)

if(BUILD_TESTING)
if(BEMAN_INPLACE_VECTOR_BUILD_TESTS)
include(CTest)
add_subdirectory(src/beman/inplace_vector/tests)
add_subdirectory(tests/beman/inplace_vector)
endif()

if(BEMAN_EXEMPLAR_BUILD_EXAMPLES)
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
SPDX-License-Identifier: <SPDX License Expression>
-->

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

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

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

## Implements

Expand Down
File renamed without changes.

0 comments on commit 83d4887

Please sign in to comment.