aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.match/CMakeLists.txt
blob: 283c54fe2f9cd6da3af591582a6487d1cf48e169 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This source code is released into the public domain.

add_library(nihil.match STATIC)
target_sources(nihil.match
	PUBLIC FILE_SET modules TYPE CXX_MODULES FILES
	match.ccm
)

if(NIHIL_TESTS)
	enable_testing()

	add_executable(nihil.match.test test.cc)
	target_link_libraries(nihil.match.test PRIVATE
		nihil.match
		Catch2::Catch2WithMain
	)

	include(CTest)
	include(Catch)
	catch_discover_tests(nihil.match.test)
endif()