blob: c4e7bf86016066d28b490fe5e9b94e653293c7c9 [file] [log] [blame]
Eric Kunze89ff71d2024-01-10 00:23:43 +00001cmake_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 Kunzee5e26762020-10-13 16:11:07 -070016
17set(CMAKE_INSTALL_PREFIX ".")
18project(tosa_tools LANGUAGES CXX)
19
Matthew Sloyanba5fad32022-09-26 13:31:43 +010020option(TOSA_TOOLS_BUILD_REFERENCE_MODEL "Enable building of TOSA Reference Model" ON)
21option(BUILD_TOSA_REFERENCE_MODEL_EXECUTABLE "Enable building of TOSA Reference Model executable" ON)
22option(BUILD_TOSA_REFERENCE_MODEL_TESTS "Enable building of TOSA Reference Model unit tests" ON)
23option(BUILD_MODEL_RUNNER_SAMPLE "Enable building of ModelRunner sample executable" OFF)
24
25# Custom path options for third party dependencies
26option(SERIALIZATION_DIR "Location where the TOSA Serialization Library 'include' folder is found" Off)
27option(FLATBUFFERS_DIR "Location where the FlatBuffers 'include' and 'lib' folders is found" Off)
28option(EIGEN_DIR "Location where the Eigen folder is found" Off)
James Ward8b390432022-08-12 20:48:56 +010029option(HALF_DIR "Location where the Half folder is found" Off)
Matthew Sloyanba5fad32022-09-26 13:31:43 +010030option(DOCTEST_DIR "Location where the doctest folder is found (If building unit tests)" Off)
Eric Kunzee5e26762020-10-13 16:11:07 -070031
32add_subdirectory(thirdparty)
33
Eric Kunzee5e26762020-10-13 16:11:07 -070034if(TOSA_TOOLS_BUILD_REFERENCE_MODEL)
35 add_subdirectory(reference_model)
36endif()
Jerry Ge5637a862023-10-30 10:18:45 -070037
38add_subdirectory(reference_model/custom_op_example)