blob: 58d795ba44511375a7709fbb099d7d028b3922f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
add_test(NAME FindBoost.Test COMMAND
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
--build-and-test
"${CMake_SOURCE_DIR}/Tests/FindBoost/Test"
"${CMake_BINARY_DIR}/Tests/FindBoost/Test"
${build_generator_args}
--build-project TestFindBoost
--build-options ${build_options}
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)
add_test(NAME FindBoost.TestFail COMMAND
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
--build-and-test
"${CMake_SOURCE_DIR}/Tests/FindBoost/TestFail"
"${CMake_BINARY_DIR}/Tests/FindBoost/TestFail"
${build_generator_args}
--build-project TestFailFindBoost
--build-options ${build_options}
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)
set_tests_properties(FindBoost.TestFail PROPERTIES
PASS_REGULAR_EXPRESSION "Could not find the following Boost libraries:[ \t\n]+boost_foobar")
add_test(NAME FindBoost.TestHeaders COMMAND
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
--build-and-test
"${CMake_SOURCE_DIR}/Tests/FindBoost/TestHeaders"
"${CMake_BINARY_DIR}/Tests/FindBoost/TestHeaders"
${build_generator_args}
--build-project TestFindBoostHeaders
--build-options ${build_options}
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)
if (CMake_TEST_FindBoost_Python)
add_test(NAME FindBoost.TestPython COMMAND
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
--build-and-test
"${CMake_SOURCE_DIR}/Tests/FindBoost/TestPython"
"${CMake_BINARY_DIR}/Tests/FindBoost/TestPython"
${build_generator_args}
--build-project TestFindBoostPython
--build-options ${build_options}
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)
endif ()
|