Skip to content

Commit 0aea22d

Browse files
committed
scopify!
1 parent 8f99a76 commit 0aea22d

File tree

6 files changed

+81
-139
lines changed

6 files changed

+81
-139
lines changed

.github/workflows/ci_tests.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,17 @@ jobs:
126126
# Portable commands only
127127
cmake --build build --config Release --parallel --verbose
128128
cmake --build build --config Release --target all_verify_interface_header_sets
129-
cmake --install build --config Release --prefix /opt/beman.exemplar
130-
ls -R /opt/beman.exemplar
129+
cmake --install build --config Release --prefix /opt/beman.scope
130+
ls -R /opt/beman.scope
131131
- name: Test Release
132132
run: ctest --test-dir build --build-config Release
133133
- name: Build Debug
134134
run: |
135135
# Portable commands only
136136
cmake --build build --config Debug --parallel --verbose
137137
cmake --build build --config Debug --target all_verify_interface_header_sets
138-
cmake --install build --config Debug --prefix /opt/beman.exemplar
139-
ls -R /opt/beman.exemplar
138+
cmake --install build --config Debug --prefix /opt/beman.scope
139+
ls -R /opt/beman.scope
140140
- name: Test Debug
141141
run: ctest --test-dir build --build-config Debug
142142

@@ -147,9 +147,9 @@ jobs:
147147
matrix:
148148
args:
149149
- name: "Disable build testing"
150-
arg: "-DBEMAN_EXEMPLAR_BUILD_TESTS=OFF"
150+
arg: "-DBEMAN_SCOPE_BUILD_TESTS=OFF"
151151
- name: "Disable example building"
152-
arg: "-DBEMAN_EXEMPLAR_BUILD_EXAMPLES=OFF"
152+
arg: "-DBEMAN_SCOPE_BUILD_EXAMPLES=OFF"
153153
name: "CMake: ${{ matrix.args.name }}"
154154
steps:
155155
- uses: actions/checkout@v4
@@ -172,15 +172,15 @@ jobs:
172172
# Portable commands only
173173
cmake --build build --config Release --parallel --verbose
174174
cmake --build build --config Release --target all_verify_interface_header_sets
175-
cmake --install build --config Release --prefix /opt/beman.exemplar
176-
ls -R /opt/beman.exemplar
175+
cmake --install build --config Release --prefix /opt/beman.scope
176+
ls -R /opt/beman.scope
177177
- name: Build Debug
178178
run: |
179179
# Portable commands only
180180
cmake --build build --config Debug --parallel --verbose
181181
cmake --build build --config Debug --target all_verify_interface_header_sets
182-
cmake --install build --config Debug --prefix /opt/beman.exemplar
183-
ls -R /opt/beman.exemplar
182+
cmake --install build --config Debug --prefix /opt/beman.scope
183+
ls -R /opt/beman.scope
184184
185185
compiler-test:
186186
runs-on: ubuntu-24.04
@@ -249,8 +249,8 @@ jobs:
249249
run: |
250250
cmake --build build --config Debug --verbose
251251
cmake --build build --config Debug --target all_verify_interface_header_sets
252-
cmake --install build --config Debug --prefix /opt/beman.exemplar
253-
find /opt/beman.exemplar -type f
252+
cmake --install build --config Debug --prefix /opt/beman.scope
253+
find /opt/beman.scope -type f
254254
- name: Test Debug
255255
run: ctest --test-dir build --build-config Debug
256256

CMakeLists.txt

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,28 @@
22

33
cmake_minimum_required(VERSION 3.25)
44

5-
project(
6-
beman.exemplar # CMake Project Name, which is also the name of the top-level
7-
# targets (e.g., library, executable, etc.).
8-
DESCRIPTION "A Beman library exemplar"
9-
LANGUAGES CXX
10-
)
5+
project(beman.scope DESCRIPTION "Generic Scope Guard" LANGUAGES CXX)
116

127
enable_testing()
138

149
# [CMAKE.SKIP_TESTS]
1510
option(
16-
BEMAN_EXEMPLAR_BUILD_TESTS
11+
BEMAN_SCOPE_BUILD_TESTS
1712
"Enable building tests and test infrastructure. Default: ON. Values: { ON, OFF }."
1813
${PROJECT_IS_TOP_LEVEL}
1914
)
2015

2116
# [CMAKE.SKIP_EXAMPLES]
2217
option(
23-
BEMAN_EXEMPLAR_BUILD_EXAMPLES
18+
BEMAN_SCOPE_BUILD_EXAMPLES
2419
"Enable building examples. Default: ON. Values: { ON, OFF }."
2520
${PROJECT_IS_TOP_LEVEL}
2621
)
2722

2823
include(FetchContent)
2924
include(GNUInstallDirs)
3025

31-
if(BEMAN_EXEMPLAR_BUILD_TESTS)
26+
if(BEMAN_SCOPE_BUILD_TESTS)
3227
# Fetch GoogleTest
3328
FetchContent_Declare(
3429
googletest
@@ -41,12 +36,12 @@ if(BEMAN_EXEMPLAR_BUILD_TESTS)
4136
FetchContent_MakeAvailable(googletest)
4237
endif()
4338

44-
add_subdirectory(src/beman/exemplar)
39+
add_subdirectory(src/beman/scope)
4540

46-
if(BEMAN_EXEMPLAR_BUILD_TESTS)
47-
add_subdirectory(tests/beman/exemplar)
41+
if(BEMAN_SCOPE_BUILD_TESTS)
42+
add_subdirectory(tests/beman/scope)
4843
endif()
4944

50-
if(BEMAN_EXEMPLAR_BUILD_EXAMPLES)
45+
if(BEMAN_SCOPE_BUILD_EXAMPLES)
5146
add_subdirectory(examples)
5247
endif()

0 commit comments

Comments
 (0)