diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2022-09-26 13:31:43 +0100 |
---|---|---|
committer | Matthew Sloyan <matthew.sloyan@arm.com> | 2022-10-07 16:02:07 +0100 |
commit | ba5fad356a926d5e1c6e0fe6b546a310230cc5a8 (patch) | |
tree | 10e3e127c091da90d591253fd55e8566c0b61e7a /thirdparty | |
parent | a0848c6edbf37034e280a670bdd2f990fdf796da (diff) | |
download | reference_model-ba5fad356a926d5e1c6e0fe6b546a310230cc5a8.tar.gz |
Add IModelRunner interface to TOSA Reference Model
* Added IModelRunner interface using pimpl idiom, which allows a user to
initialize, configure and run the model.
* Added unit tests for IModelRunner.
* Added doctest as third-party submodule.
* Added user options to specify paths for dependencies.
* Moved general func_config functions to separate utility, which removes
cxxopts dependency.
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: If42f1f82cd6dadf18911a48dcd5fa579b719aff2
Diffstat (limited to 'thirdparty')
-rw-r--r-- | thirdparty/CMakeLists.txt | 11 | ||||
m--------- | thirdparty/doctest | 0 |
2 files changed, 9 insertions, 2 deletions
diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index abcc52c..aa6c43d 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -12,6 +12,13 @@ set(CMAKE_INSTALL_PREFIX "./thirdparty" CACHE PATH "..." FORCE) project(thirdparty LANGUAGES CXX) -add_subdirectory(cxxopts) add_subdirectory(serialization_lib EXCLUDE_FROM_ALL) -add_subdirectory(json EXCLUDE_FROM_ALL) + +if(BUILD_TOSA_REFERENCE_MODEL_EXECUTABLE) + add_subdirectory(cxxopts) + add_subdirectory(json EXCLUDE_FROM_ALL) +endif() + +if(BUILD_TOSA_REFERENCE_MODEL_TESTS) + add_subdirectory(doctest EXCLUDE_FROM_ALL) +endif() diff --git a/thirdparty/doctest b/thirdparty/doctest new file mode 160000 +Subproject 86892fc480f80fb57d9a3926cb506c0e974489d |