Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 1 | cmake_minimum_required (VERSION 3.4) |
| 2 | |
| 3 | set(CMAKE_INSTALL_PREFIX ".") |
| 4 | project(tosa_tools LANGUAGES CXX) |
| 5 | |
Matthew Sloyan | ba5fad3 | 2022-09-26 13:31:43 +0100 | [diff] [blame^] | 6 | option(TOSA_TOOLS_BUILD_REFERENCE_MODEL "Enable building of TOSA Reference Model" ON) |
| 7 | option(BUILD_TOSA_REFERENCE_MODEL_EXECUTABLE "Enable building of TOSA Reference Model executable" ON) |
| 8 | option(BUILD_TOSA_REFERENCE_MODEL_TESTS "Enable building of TOSA Reference Model unit tests" ON) |
| 9 | option(BUILD_MODEL_RUNNER_SAMPLE "Enable building of ModelRunner sample executable" OFF) |
| 10 | |
| 11 | # Custom path options for third party dependencies |
| 12 | option(SERIALIZATION_DIR "Location where the TOSA Serialization Library 'include' folder is found" Off) |
| 13 | option(FLATBUFFERS_DIR "Location where the FlatBuffers 'include' and 'lib' folders is found" Off) |
| 14 | option(EIGEN_DIR "Location where the Eigen folder is found" Off) |
| 15 | option(DOCTEST_DIR "Location where the doctest folder is found (If building unit tests)" Off) |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 16 | |
| 17 | add_subdirectory(thirdparty) |
| 18 | |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 19 | if(TOSA_TOOLS_BUILD_REFERENCE_MODEL) |
| 20 | add_subdirectory(reference_model) |
| 21 | endif() |