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

add_executable(nihil.test
	command_map.cc
	ctype.cc
	fd.cc
	generator.cc
	generic_error.cc
	getenv.cc
	guard.cc
	next_word.cc
	skipws.cc
	tabulate.cc)

target_link_libraries(nihil.test PRIVATE
	nihil
	Catch2::Catch2WithMain
)

find_package(Catch2 REQUIRED)

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