aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/CMakeLists.txt
blob: aa6c43df97c4461d8188ee0236ff8d99e11e2a9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required (VERSION 3.4)

# fetch 3rd party libraries
include(FetchContent)
FetchContent_Declare(
  cxxopts
  URL               https://github.com/jarro2783/cxxopts/archive/v2.2.1.tar.gz
  URL_MD5           6e70da4fc17a09f32612443f1866042e
)

set(CMAKE_INSTALL_PREFIX "./thirdparty" CACHE PATH "..." FORCE)

project(thirdparty LANGUAGES CXX)

add_subdirectory(serialization_lib EXCLUDE_FROM_ALL)

if(BUILD_TOSA_REFERENCE_MODEL_EXECUTABLE)
    add_subdirectory(cxxopts)
    add_subdirectory(json EXCLUDE_FROM_ALL)
endif()

if(BUILD_TOSA_REFERENCE_MODEL_TESTS)
    add_subdirectory(doctest EXCLUDE_FROM_ALL)
endif()