Commit 9884be0b authored by Tom Finegan's avatar Tom Finegan

Only build/run test targets in MSVC when requested.

Exclude the test and testdata targets when build solution
is executed through the MSVC UI.

BUG=aomedia:76

Change-Id: I0f5c24084c99452d9fcab4ada4d7f981ffb9ac64
parent 846d67dd
......@@ -368,4 +368,16 @@ function (setup_aom_test_targets)
endforeach ()
add_custom_target(runtests)
add_dependencies(runtests ${test_targets})
if (MSVC)
set_target_properties(${testdata_targets} PROPERTIES
EXCLUDE_FROM_ALL TRUE
EXCLUDE_FROM_DEFAULT_BUILD TRUE)
set_target_properties(${test_targets} PROPERTIES
EXCLUDE_FROM_ALL TRUE
EXCLUDE_FROM_DEFAULT_BUILD TRUE)
set_target_properties(testdata runtests PROPERTIES
EXCLUDE_FROM_ALL TRUE
EXCLUDE_FROM_DEFAULT_BUILD TRUE)
endif ()
endfunction ()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment