blob: 2cd7989d1f4e57368ccc8a8ac6fcf84cb1038abc [file] [log] [blame]
alexander31ae9f02022-02-10 16:15:54 +00001#----------------------------------------------------------------------------
Kshitij Sisodia774c7ca2024-04-12 11:30:02 +01002# SPDX-FileCopyrightText: Copyright 2022, 2024 Arm Limited and/or its
3# affiliates <open-source-office@arm.com>
alexander31ae9f02022-02-10 16:15:54 +00004# SPDX-License-Identifier: Apache-2.0
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#----------------------------------------------------------------------------
18
19#######################################################
20# Math functions for ML pipelines. #
21#######################################################
22
23project(arm_math
24 DESCRIPTION "Collection of the optimised math functions for ML pipelines"
25 LANGUAGES C CXX)
26
27add_library(arm_math STATIC)
28
29target_sources(arm_math
30 PRIVATE
31 PlatformMath.cc)
32
33target_include_directories(arm_math PUBLIC include)
34
35target_link_libraries(arm_math PRIVATE log)
36
Kshitij Sisodia9c6f9f82022-05-20 14:30:02 +010037if (${CMAKE_CROSSCOMPILING})
Kshitij Sisodia774c7ca2024-04-12 11:30:02 +010038 include(cmsis-dsp)
alexander31ae9f02022-02-10 16:15:54 +000039 target_link_libraries(arm_math PUBLIC cmsis-dsp)
40endif ()
41
42message(STATUS "*******************************************************")
Kshitij Sisodia774c7ca2024-04-12 11:30:02 +010043message(STATUS "Library : " arm_math)
44message(STATUS "CMAKE_SYSTEM_PROCESSOR : " ${CMAKE_SYSTEM_PROCESSOR})
alexander31ae9f02022-02-10 16:15:54 +000045message(STATUS "*******************************************************")