Commit 140dcd57 authored by Tom Finegan's avatar Tom Finegan
Browse files

Add test executables to AOM_APP_TARGETS list in the CMake build.

Change-Id: Ia4ec99ce8f3dd0098764571777e78adac21b6e67
parent f7a80485
...@@ -390,6 +390,7 @@ function (setup_aom_test_targets) ...@@ -390,6 +390,7 @@ function (setup_aom_test_targets)
add_executable(test_libaom ${AOM_UNIT_TEST_WRAPPER_SOURCES} add_executable(test_libaom ${AOM_UNIT_TEST_WRAPPER_SOURCES}
$<TARGET_OBJECTS:aom_common_app_util> $<TARGET_OBJECTS:aom_common_app_util>
$<TARGET_OBJECTS:test_aom_common>) $<TARGET_OBJECTS:test_aom_common>)
set(AOM_APP_TARGETS ${AOM_APP_TARGETS} test_libaom)
if (CONFIG_AV1_DECODER) if (CONFIG_AV1_DECODER)
target_sources(test_libaom PRIVATE target_sources(test_libaom PRIVATE
...@@ -416,6 +417,7 @@ function (setup_aom_test_targets) ...@@ -416,6 +417,7 @@ function (setup_aom_test_targets)
$<TARGET_OBJECTS:aom_common_app_util>) $<TARGET_OBJECTS:aom_common_app_util>)
target_link_libraries(test_intra_pred_speed ${AOM_LIB_LINK_TYPE} target_link_libraries(test_intra_pred_speed ${AOM_LIB_LINK_TYPE}
aom gtest) aom gtest)
set(AOM_APP_TARGETS ${AOM_APP_TARGETS} test_intra_pred_speed)
endif () endif ()
endif () endif ()
...@@ -509,6 +511,8 @@ function (setup_aom_test_targets) ...@@ -509,6 +511,8 @@ function (setup_aom_test_targets)
endforeach () endforeach ()
add_custom_target(runtests) add_custom_target(runtests)
add_dependencies(runtests ${test_targets}) add_dependencies(runtests ${test_targets})
set(AOM_APP_TARGETS ${AOM_APP_TARGETS} PARENT_SCOPE)
endfunction () endfunction ()
endif () # AOM_TEST_TEST_CMAKE_ endif () # AOM_TEST_TEST_CMAKE_
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