Eric Kunze | 89ff71d | 2024-01-10 00:23:43 +0000 | [diff] [blame] | 1 | cmake_minimum_required (VERSION 3.16) |
| 2 | |
| 3 | # Copyright (c) 2023-2024, ARM Limited. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 16 | |
| 17 | set(CMAKE_INSTALL_PREFIX ".") |
| 18 | project(tosa_tools LANGUAGES CXX) |
| 19 | |
Matthew Sloyan | ba5fad3 | 2022-09-26 13:31:43 +0100 | [diff] [blame] | 20 | option(TOSA_TOOLS_BUILD_REFERENCE_MODEL "Enable building of TOSA Reference Model" ON) |
| 21 | option(BUILD_TOSA_REFERENCE_MODEL_EXECUTABLE "Enable building of TOSA Reference Model executable" ON) |
| 22 | option(BUILD_TOSA_REFERENCE_MODEL_TESTS "Enable building of TOSA Reference Model unit tests" ON) |
| 23 | option(BUILD_MODEL_RUNNER_SAMPLE "Enable building of ModelRunner sample executable" OFF) |
| 24 | |
| 25 | # Custom path options for third party dependencies |
| 26 | option(SERIALIZATION_DIR "Location where the TOSA Serialization Library 'include' folder is found" Off) |
| 27 | option(FLATBUFFERS_DIR "Location where the FlatBuffers 'include' and 'lib' folders is found" Off) |
| 28 | option(EIGEN_DIR "Location where the Eigen folder is found" Off) |
James Ward | 8b39043 | 2022-08-12 20:48:56 +0100 | [diff] [blame] | 29 | option(HALF_DIR "Location where the Half folder is found" Off) |
Matthew Sloyan | ba5fad3 | 2022-09-26 13:31:43 +0100 | [diff] [blame] | 30 | 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] | 31 | |
| 32 | add_subdirectory(thirdparty) |
| 33 | |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 34 | if(TOSA_TOOLS_BUILD_REFERENCE_MODEL) |
| 35 | add_subdirectory(reference_model) |
| 36 | endif() |
Jerry Ge | 5637a86 | 2023-10-30 10:18:45 -0700 | [diff] [blame] | 37 | |
| 38 | add_subdirectory(reference_model/custom_op_example) |