Skip to content

Commit aff35b1

Browse files
committed
remove special case logic for module.test
1 parent 451ce8e commit aff35b1

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,12 @@ FetchContent_Declare(
99
)
1010
FetchContent_MakeAvailable(Catch2)
1111

12-
set(ALL_TESTNAMES scope_success scope_exit scope_fail unique_resource)
12+
set(ALL_TESTNAMES scope_success scope_exit scope_fail unique_resource module)
1313

1414
message("Tests to be built: ${ALL_TESTNAMES}")
1515

1616
include(Catch)
1717

18-
add_executable(test.module)
19-
target_sources(test.module PRIVATE module.test.cpp)
20-
target_link_libraries(test.module PRIVATE beman::scope)
21-
add_test(NAME test.module COMMAND test.module)
22-
23-
# todo: gc++15 module and catch incompatiblity?
24-
# target_link_libraries(
25-
# test.module
26-
# PUBLIC FILE_SET TYPE CXX_MODULES include/beman/scope/beman.scope.cppm
27-
# PRIVATE Catch2::Catch2WithMain beman::scope
28-
# )
29-
# catch_discover_tests(test.module)
30-
3118
foreach(testname ${ALL_TESTNAMES})
3219
add_executable(test.${testname})
3320
target_sources(test.${testname} PRIVATE ${testname}.test.cpp)

0 commit comments

Comments
 (0)