blob: 44af9c0c529cb7ca1ac9ed4dc8a002442a05d9a6 [file] [log] [blame]
Eric Kunze2364dcd2021-04-26 11:06:57 -07001#TOSA serialization library
2
3# Copyright (c) 2020-2021, 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.
16
17# Contains TOSA flatbuffer serialization library content.
18
19cmake_minimum_required(VERSION 3.13.4)
20project(TosaSerialization)
21
22set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
23set(CMAKE_CXX_STANDARD_REQUIRED YES)
24
25set(CMAKE_VERBOSE_MAKEFILE ON)
26
27include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
28include_directories(${PROJECT_SOURCE_DIR}/third_party/flatbuffers/include)
29
30add_library(tosa_serialization_lib STATIC
31 src/tosa_serialization_handler.cpp
32 src/numpy_utils.cpp
33 )
34
35add_subdirectory(third_party)
36
37add_executable(serialization_read_write
38 test/src/serialization_read_write.cpp
39)
40
41target_link_libraries(serialization_read_write
42 tosa_serialization_lib
43 flatbuffers
44)
45
46add_executable(serialization_npy_test
47 test/src/serialization_npy_test.cpp
48)
49
50target_link_libraries(serialization_npy_test
51 tosa_serialization_lib
52 flatbuffers
53)