blob: 6556b2730a6cf0b7e6d150c4b67aa32555b6b9c9 [file] [log] [blame]
Eric Kunzee5e26762020-10-13 16:11:07 -07001cmake_minimum_required (VERSION 3.4)
2
3set(CMAKE_INSTALL_PREFIX ".")
4project(tosa_tools LANGUAGES CXX)
5
Matthew Sloyanba5fad32022-09-26 13:31:43 +01006option(TOSA_TOOLS_BUILD_REFERENCE_MODEL "Enable building of TOSA Reference Model" ON)
7option(BUILD_TOSA_REFERENCE_MODEL_EXECUTABLE "Enable building of TOSA Reference Model executable" ON)
8option(BUILD_TOSA_REFERENCE_MODEL_TESTS "Enable building of TOSA Reference Model unit tests" ON)
9option(BUILD_MODEL_RUNNER_SAMPLE "Enable building of ModelRunner sample executable" OFF)
10
11# Custom path options for third party dependencies
12option(SERIALIZATION_DIR "Location where the TOSA Serialization Library 'include' folder is found" Off)
13option(FLATBUFFERS_DIR "Location where the FlatBuffers 'include' and 'lib' folders is found" Off)
14option(EIGEN_DIR "Location where the Eigen folder is found" Off)
James Ward8b390432022-08-12 20:48:56 +010015option(HALF_DIR "Location where the Half folder is found" Off)
Matthew Sloyanba5fad32022-09-26 13:31:43 +010016option(DOCTEST_DIR "Location where the doctest folder is found (If building unit tests)" Off)
Eric Kunzee5e26762020-10-13 16:11:07 -070017
18add_subdirectory(thirdparty)
19
Eric Kunzee5e26762020-10-13 16:11:07 -070020if(TOSA_TOOLS_BUILD_REFERENCE_MODEL)
21 add_subdirectory(reference_model)
22endif()