Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Beatrici <git@davidebeatrici.dev>2020-06-05 01:38:17 +0300
committerRalph Giles <giles@thaumas.net>2020-11-21 19:40:51 +0300
commit19586c5ab0acb81c5564055454a9f3578bc3417d (patch)
tree3411d34c4ea0bb13706fa975cfe9f4cdd02d2945
parent93fe345080654071181025efa6d8e289c132dfc9 (diff)
CMakeLists.txt: specify path to target file in add_test() directives
This is required in case the output path for tests is changed by a project adding Opus as submodule. Signed-off-by: Ralph Giles <giles@thaumas.net>
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 63df953a..6149e571 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -546,13 +546,13 @@ if(BUILD_TESTING)
if(OPUS_FIXED_POINT)
target_compile_definitions(test_opus_decode PRIVATE DISABLE_FLOAT_API)
endif()
- add_test(test_opus_decode test_opus_decode)
+ add_test(NAME test_opus_decode COMMAND $<TARGET_FILE:test_opus_decode>)
add_executable(test_opus_padding ${test_opus_padding_sources})
target_include_directories(test_opus_padding
PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(test_opus_padding PRIVATE opus)
- add_test(test_opus_padding test_opus_padding)
+ add_test(NAME test_opus_padding COMMAND $<TARGET_FILE:test_opus_padding>)
if(NOT BUILD_SHARED_LIBS)
# disable tests that depends on private API when building shared lib
@@ -563,12 +563,12 @@ if(BUILD_TESTING)
if(OPUS_FIXED_POINT)
target_compile_definitions(test_opus_api PRIVATE DISABLE_FLOAT_API)
endif()
- add_test(test_opus_api test_opus_api)
+ add_test(NAME test_opus_api COMMAND $<TARGET_FILE:test_opus_api>)
add_executable(test_opus_encode ${test_opus_encode_sources})
target_include_directories(test_opus_encode
PRIVATE ${CMAKE_CURRENT_BINARY_DIR} celt)
target_link_libraries(test_opus_encode PRIVATE opus)
- add_test(test_opus_encode test_opus_encode)
+ add_test(NAME test_opus_encode COMMAND $<TARGET_FILE:test_opus_encode>)
endif()
endif()