Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Added
- [CPP] Add a cpp implementation ([#241](https://github.com/cucumber/tag-expressions/pull/241))

## [8.1.0] - 2025-11-26
### Added
Expand Down
1 change: 1 addition & 0 deletions cpp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
81 changes: 81 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
cmake_minimum_required(VERSION 3.15)
project(Cucumber-Tag-Expressions VERSION 8.1.0 LANGUAGES CXX)

# Set C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

###
#
# Options
#
###
option(
CUCUMBER_TAG_EXPRESSIONS_BUILD_TESTS
"Enable build of the tests"
${CUCUMBER_TAG_EXPRESSIONS_BUILD_TESTS}
)

option(
CUCUMBER_TAG_EXPRESSIONS_ENABLE_COVERAGE
"Enable compiler flags for code coverage measurements"
${CUCUMBER_TAG_EXPRESSIONS_ENABLE_COVERAGE}
)

###
#
# Targets
#
###
add_subdirectory(src)
add_subdirectory(example)
add_subdirectory(tests)

###
#
# Installation support
#
###
install(TARGETS cucumber-tag-expressions
EXPORT cucumber-tag-expressions-targets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)

install(DIRECTORY include/
DESTINATION include
)

install(EXPORT cucumber-tag-expressions-targets
FILE cucumber-tag-expressions-targets.cmake
NAMESPACE cucumber::
DESTINATION lib/cmake/cucumber-tag-expressions
)

###
#
# Package configuration
#
###
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/cucumber-tag-expressions-config-version.cmake"
VERSION ${PROJECT_VERSION}
COMPATIBILITY AnyNewerVersion
)

configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cucumber-tag-expressions-config.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cucumber-tag-expressions-config.cmake"
@ONLY
)

install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/cucumber-tag-expressions-config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/cucumber-tag-expressions-config-version.cmake"
DESTINATION lib/cmake/cucumber-tag-expressions
)

Loading