2022-01-18 20:18:49 +00:00
|
|
|
# Copyright 2018-2022, Collabora, Ltd.
|
2021-11-03 19:22:13 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
2020-06-15 15:58:48 +00:00
|
|
|
|
|
|
|
# Catch2 main test driver
|
|
|
|
add_library(tests_main STATIC tests_main.cpp)
|
|
|
|
target_link_libraries(tests_main PUBLIC xrt-external-catch2)
|
|
|
|
if(ANDROID)
|
|
|
|
target_link_libraries(tests_main PUBLIC log)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Input transform test
|
|
|
|
add_executable(tests_input_transform tests_input_transform.cpp)
|
|
|
|
target_link_libraries(tests_input_transform PRIVATE tests_main)
|
2021-11-11 23:41:58 +00:00
|
|
|
target_link_libraries(
|
|
|
|
tests_input_transform PRIVATE st_oxr xrt-interfaces xrt-external-openxr aux_util
|
|
|
|
)
|
2020-06-15 15:58:48 +00:00
|
|
|
add_test(NAME input_transform COMMAND tests_input_transform --success)
|
2021-03-26 19:49:54 +00:00
|
|
|
|
|
|
|
# Generic callbacks
|
|
|
|
add_executable(tests_generic_callbacks tests_generic_callbacks.cpp)
|
|
|
|
target_link_libraries(tests_generic_callbacks PRIVATE tests_main)
|
|
|
|
target_link_libraries(tests_generic_callbacks PRIVATE aux_util)
|
|
|
|
add_test(NAME tests_generic_callbacks COMMAND tests_generic_callbacks --success)
|
2021-10-31 03:18:12 +00:00
|
|
|
|
|
|
|
# cJSON Wrapper
|
|
|
|
add_executable(tests_json tests_json.cpp)
|
|
|
|
target_link_libraries(tests_json PRIVATE tests_main)
|
|
|
|
target_link_libraries(tests_json PRIVATE aux_util)
|
|
|
|
add_test(NAME tests_json COMMAND tests_json --success)
|
2021-12-02 21:43:25 +00:00
|
|
|
|
|
|
|
# history
|
|
|
|
add_executable(tests_history_buf tests_history_buf.cpp)
|
|
|
|
target_link_libraries(tests_history_buf PRIVATE tests_main)
|
|
|
|
target_link_libraries(tests_history_buf PRIVATE aux_util aux_math)
|
|
|
|
add_test(NAME tests_history_buf COMMAND tests_history_buf --success)
|
2021-12-10 17:13:06 +00:00
|
|
|
|
2022-01-18 20:18:49 +00:00
|
|
|
# pacing
|
|
|
|
add_executable(tests_pacing tests_pacing.cpp)
|
|
|
|
target_link_libraries(tests_pacing PRIVATE tests_main)
|
|
|
|
target_link_libraries(tests_pacing PRIVATE aux_util aux_math)
|
|
|
|
add_test(NAME tests_pacing COMMAND tests_pacing --success)
|
|
|
|
|
2021-12-10 17:13:06 +00:00
|
|
|
# misc wrappers
|
|
|
|
add_executable(tests_cxx_wrappers tests_cxx_wrappers.cpp)
|
|
|
|
target_link_libraries(tests_cxx_wrappers PRIVATE tests_main)
|
|
|
|
target_link_libraries(tests_cxx_wrappers PRIVATE aux_util xrt-interfaces)
|
|
|
|
add_test(NAME tests_cxx_wrappers COMMAND tests_cxx_wrappers --success)
|
2021-12-22 15:16:27 +00:00
|
|
|
|
|
|
|
# quatexpmap
|
|
|
|
add_executable(tests_quatexpmap tests_quatexpmap.cpp)
|
|
|
|
target_link_libraries(tests_quatexpmap PRIVATE tests_main)
|
|
|
|
target_link_libraries(tests_quatexpmap PRIVATE aux_math)
|
|
|
|
add_test(NAME tests_quatexpmap COMMAND tests_quatexpmap --success)
|