File tree Expand file tree Collapse file tree 4 files changed +16
-61
lines changed
Expand file tree Collapse file tree 4 files changed +16
-61
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.25)
44
55project (beman.scope DESCRIPTION "Generic Scope Guard" LANGUAGES CXX)
66
7- # enable_testing()
7+ enable_testing ()
88
99# [CMAKE.SKIP_TESTS]
1010option (
@@ -25,9 +25,9 @@ include(GNUInstallDirs)
2525
2626add_subdirectory (src/beman/scope)
2727
28- # if(BEMAN_SCOPE_BUILD_TESTS)
29- # add_subdirectory(tests/beman/scope)
30- # endif()
28+ if (BEMAN_SCOPE_BUILD_TESTS)
29+ add_subdirectory (tests/beman/scope)
30+ endif ()
3131
3232if (BEMAN_SCOPE_BUILD_EXAMPLES)
3333 add_subdirectory (examples)
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22
3- #add_executable(beman.scope.tests.identity)
4- #target_sources(beman.scope.tests.identity PRIVATE identity.test.cpp)
3+ add_executable (beman.scope.tests.scope)
4+ target_sources (beman.scope.tests.scope PRIVATE scope.test .cpp)
5+
6+ target_link_libraries (beman.scope.tests.scope PRIVATE beman::scope)
7+
8+ add_test (
9+ NAME beman.scope.tests.scope
10+ COMMAND beman.scope.tests.scope
11+ )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ int main () {
2+ // TODO: Add tests
3+ }
You can’t perform that action at this time.
0 commit comments