Corrected cmake tests

This commit is contained in:
Edward Diener
2021-05-29 08:59:36 -04:00
parent aa8f347df2
commit 93b896c932

View File

@ -11,8 +11,9 @@ endif()
enable_language(C)
set(tests_common arithmetic array comparison control debug facilities list logical punctuation selection seq slot stringize tuple variadic isempty)
set(tests_common_fail isempty_variadic_standard_failure isempty_variadic_standard_failure2)
set(tests_c ${tests_common})
set(tests_cpp ${tests_common} iteration repetition quick)
set(tests_cpp ${tests_common} iteration repetition checkempty vaopt quick)
set(BOOST_TEST_LINK_LIBRARIES Boost::preprocessor)
@ -21,13 +22,20 @@ include_directories(../../..) # for `include <libs/preprocessor/...>` to work
foreach(test IN LISTS tests_c)
boost_test(TYPE compile SOURCES ${test}.c)
boost_test(TYPE compile NAME ${test}_c_nvm SOURCES ${test}.c COMPILE_DEFINITIONS BOOST_PP_VARIADICS=0)
endforeach()
foreach(test IN LISTS tests_cpp)
boost_test(TYPE compile SOURCES ${test}.cpp)
boost_test(TYPE compile NAME ${test}_cpp_nvm SOURCES ${test}.cpp COMPILE_DEFINITIONS BOOST_PP_VARIADICS=0)
endforeach()
foreach(test IN LISTS tests_common_fail)
boost_test(TYPE compile-fail SOURCES ${test}.c)
boost_test(TYPE compile-fail SOURCES ${test}.cpp)
endforeach()
boost_test(TYPE run SOURCES config_info.cpp)