Backport lots of new features from the 1.41.0 branch.
[boost:cmake.git] / tools / build / CMake / test / tools / tool-a / test / CMakeLists.txt
1 #
2 # Copyright Troy D. Straszheim
3 #
4 # Distributed under the Boost Software License, Version 1.0.
5 # See http://www.boost.org/LICENSE_1_0.txt
6 #
7
8 foreach(shared_or_static SHARED STATIC)
9   foreach(debug_or_release DEBUG RELEASE)
10     foreach(single_or_multi SINGLE_THREADED MULTI_THREADED)
11   
12       set(testname ${shared_or_static}-${debug_or_release}-${single_or_multi})
13       add_test(a-${testname} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/a-${testname})
14       set_tests_properties(a-${testname}
15         PROPERTIES
16         PASS_REGULAR_EXPRESSION "${testname}")
17
18     endforeach()    
19   endforeach()    
20 endforeach()
21