-
Notifications
You must be signed in to change notification settings - Fork 4
Cleanup #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup #16
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,8 +1,6 @@ | ||||||||||
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||||||||
|
|
||||||||||
| cmake_minimum_required(VERSION 3.25) | ||||||||||
|
|
||||||||||
| set(CMAKE_CXX_STANDARD 23) | ||||||||||
| cmake_minimum_required(VERSION 3.30...4.3) | ||||||||||
|
|
||||||||||
| project( | ||||||||||
| beman.cstring_view # CMake Project Name, which is also the name of the top-level | ||||||||||
|
|
@@ -26,20 +24,31 @@ option( | |||||||||
| ${PROJECT_IS_TOP_LEVEL} | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| option( | ||||||||||
| BEMAN_CSTRING_VIEW_INSTALL_CONFIG_FILE_PACKAGE | ||||||||||
| "Enable creating and installing a CMake config-file package. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }." | ||||||||||
| ${PROJECT_IS_TOP_LEVEL} | ||||||||||
| # for find of beman-install-library | ||||||||||
| include(infra/cmake/beman-install-library.cmake) | ||||||||||
|
|
||||||||||
| add_library(beman.cstring_view INTERFACE) | ||||||||||
| add_library(beman::cstring_view ALIAS beman.cstring_view) | ||||||||||
|
|
||||||||||
| target_sources( | ||||||||||
| beman.cstring_view | ||||||||||
| PUBLIC FILE_SET HEADERS BASE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include" | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| set_target_properties( | ||||||||||
| beman.cstring_view | ||||||||||
| PROPERTIES VERIFY_INTERFACE_HEADER_SETS ${PROJECT_IS_TOP_LEVEL} | ||||||||||
|
Comment on lines
+39
to
+40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pre-commit] reported by reviewdog 🐶
Suggested change
|
||||||||||
| ) | ||||||||||
|
|
||||||||||
| include(CTest) | ||||||||||
| add_subdirectory(include/beman/cstring_view) | ||||||||||
|
|
||||||||||
| add_subdirectory(src/beman/cstring_view) | ||||||||||
| beman_install_library(beman.cstring_view TARGETS beman.cstring_view) | ||||||||||
|
|
||||||||||
| if(BEMAN_CSTRING_VIEW_BUILD_TESTS) | ||||||||||
| add_subdirectory(tests/beman/cstring_view) | ||||||||||
| enable_testing() | ||||||||||
| add_subdirectory(tests/beman/cstring_view) | ||||||||||
|
Comment on lines
+48
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pre-commit] reported by reviewdog 🐶
Suggested change
|
||||||||||
| endif() | ||||||||||
|
|
||||||||||
| if(BEMAN_CSTRING_VIEW_BUILD_EXAMPLES) | ||||||||||
| add_subdirectory(examples) | ||||||||||
| add_subdirectory(examples) | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [pre-commit] reported by reviewdog 🐶
Suggested change
|
||||||||||
| endif() | ||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pre-commit] reported by reviewdog 🐶