blob: df9caeedacedc7e1801e27189d8b2c7517d502d6 [file] [log] [blame]
Eric Kunze89ff71d2024-01-10 00:23:43 +00001cmake_minimum_required (VERSION 3.16)
2
3cmake_policy(SET CMP0135 NEW)
Eric Kunzee5e26762020-10-13 16:11:07 -07004
Eric Kunze286f8342022-06-22 11:30:23 -07005# fetch 3rd party libraries
6include(FetchContent)
7FetchContent_Declare(
8 cxxopts
9 URL https://github.com/jarro2783/cxxopts/archive/v2.2.1.tar.gz
10 URL_MD5 6e70da4fc17a09f32612443f1866042e
11)
12
Eric Kunzee5e26762020-10-13 16:11:07 -070013set(CMAKE_INSTALL_PREFIX "./thirdparty" CACHE PATH "..." FORCE)
14
15project(thirdparty LANGUAGES CXX)
16
Kevin Cheng25fbe522021-11-05 19:18:49 +000017add_subdirectory(serialization_lib EXCLUDE_FROM_ALL)
Matthew Sloyanba5fad32022-09-26 13:31:43 +010018
19if(BUILD_TOSA_REFERENCE_MODEL_EXECUTABLE)
20 add_subdirectory(cxxopts)
21 add_subdirectory(json EXCLUDE_FROM_ALL)
22endif()
23
24if(BUILD_TOSA_REFERENCE_MODEL_TESTS)
25 add_subdirectory(doctest EXCLUDE_FROM_ALL)
26endif()