2019-07-12 12:32:30 +08:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
|
|
|
project(SOF_TPLG_PARSER C)
|
|
|
|
|
|
|
|
set(sof_source_directory "${PROJECT_SOURCE_DIR}/../..")
|
|
|
|
|
|
|
|
add_library(sof_tplg_parser SHARED tplg_parser.c)
|
|
|
|
target_include_directories(sof_tplg_parser PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
|
|
target_include_directories(sof_tplg_parser PRIVATE ${sof_source_directory}/src/include)
|
2020-09-24 06:37:10 +08:00
|
|
|
target_compile_options(sof_tplg_parser PRIVATE -g -O -Wall -Werror -Wl,-EL -Wmissing-prototypes -Wimplicit-fallthrough)
|
2019-07-12 12:32:30 +08:00
|
|
|
|
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/tplg_parser
|
|
|
|
DESTINATION include
|
|
|
|
PATTERN "*.h"
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS sof_tplg_parser DESTINATION lib)
|
|
|
|
|