From 2e2d1bd3b6c7776b77c33b94f30ead89367a71e6 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Tue, 1 Jul 2025 17:07:04 +0100 Subject: add nihil.std --- nihil.match/CMakeLists.txt | 1 + nihil.match/match.ccm | 11 +++-------- nihil.match/test.cc | 8 ++------ 3 files changed, 6 insertions(+), 14 deletions(-) (limited to 'nihil.match') diff --git a/nihil.match/CMakeLists.txt b/nihil.match/CMakeLists.txt index 283c54f..da59663 100644 --- a/nihil.match/CMakeLists.txt +++ b/nihil.match/CMakeLists.txt @@ -1,6 +1,7 @@ # This source code is released into the public domain. add_library(nihil.match STATIC) +target_link_libraries(nihil.match PRIVATE nihil.std) target_sources(nihil.match PUBLIC FILE_SET modules TYPE CXX_MODULES FILES match.ccm diff --git a/nihil.match/match.ccm b/nihil.match/match.ccm index d67bd0b..03730bb 100644 --- a/nihil.match/match.ccm +++ b/nihil.match/match.ccm @@ -1,13 +1,8 @@ -/* - * This source code is released into the public domain. - */ - -module; - -#include - +// This source code is released into the public domain. export module nihil.match; +import nihil.std; + namespace nihil { export template diff --git a/nihil.match/test.cc b/nihil.match/test.cc index 7dd1c34..974a58a 100644 --- a/nihil.match/test.cc +++ b/nihil.match/test.cc @@ -1,12 +1,8 @@ -/* - * This source code is released into the public domain. - */ - -#include -#include +// This source code is released into the public domain. #include +import nihil.std; import nihil.match; TEST_CASE("match", "[nihil]") -- cgit v1.2.3