Skip to content

Commit a97daf4

Browse files
committed
Add test/CMakeLists.txt
1 parent 3777e67 commit a97daf4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

test/CMakeLists.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2018-2020 Peter Dimov
2+
# Distributed under the Boost Software License, Version 1.0.
3+
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
4+
5+
include(BoostTest OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST)
6+
7+
if(NOT HAVE_BOOST_TEST)
8+
return()
9+
endif()
10+
11+
set(BOOST_TEST_LINK_LIBRARIES Boost::program_options)
12+
13+
boost_test(TYPE run SOURCES options_description_test.cpp)
14+
boost_test(TYPE run SOURCES parsers_test.cpp ARGUMENTS ${CMAKE_CURRENT_SOURCE_DIR}/config_test.cfg)
15+
boost_test(TYPE run SOURCES variable_map_test.cpp)
16+
boost_test(TYPE run SOURCES cmdline_test.cpp)
17+
boost_test(TYPE run SOURCES positional_options_test.cpp)
18+
boost_test(TYPE run SOURCES unicode_test.cpp)
19+
boost_test(TYPE run SOURCES winmain.cpp)
20+
boost_test(TYPE run SOURCES exception_test.cpp)
21+
boost_test(TYPE run SOURCES split_test.cpp)
22+
boost_test(TYPE run SOURCES unrecognized_test.cpp)
23+
boost_test(TYPE run SOURCES required_test.cpp ARGUMENTS ${CMAKE_CURRENT_SOURCE_DIR}/required_test.cfg)
24+
boost_test(TYPE run SOURCES exception_txt_test.cpp)
25+
boost_test(TYPE run SOURCES optional_test.cpp)
26+
27+
boost_test(TYPE run SOURCES quick.cpp ARGUMENTS --path=initial LINK_LIBRARIES Boost::core)

0 commit comments

Comments
 (0)