Skip to content

Commit

Permalink
Merge pull request #24 from wusatosi/test-dir
Browse files Browse the repository at this point in the history
Apply beman standard.
  • Loading branch information
wusatosi authored Nov 20, 2024
2 parents 92aa848 + d6a24d5 commit 55656b4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 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 @@ -15,9 +13,19 @@ project(
LANGUAGES CXX
)

# [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 @@ -42,7 +50,7 @@ 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()
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
SPDX-License-Identifier: <SPDX License Expression>
-->

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

![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)

A dynamically-resizable vector with fixed capacity and embedded storage

## Implements

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

0 comments on commit 55656b4

Please sign in to comment.