xref: /aosp_15_r20/external/ruy/cmake/ruy_include_directories.cmake (revision bb86c7ed5fb1b98a7eac808e443a46cc8b90dfc0)
1*bb86c7edSAndroid Build Coastguard Worker# Copyright 2019-2021 Google LLC
2*bb86c7edSAndroid Build Coastguard Worker#
3*bb86c7edSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4*bb86c7edSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5*bb86c7edSAndroid Build Coastguard Worker# You may obtain a copy of the License at
6*bb86c7edSAndroid Build Coastguard Worker#
7*bb86c7edSAndroid Build Coastguard Worker#      https://www.apache.org/licenses/LICENSE-2.0
8*bb86c7edSAndroid Build Coastguard Worker#
9*bb86c7edSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*bb86c7edSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11*bb86c7edSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*bb86c7edSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13*bb86c7edSAndroid Build Coastguard Worker# limitations under the License.
14*bb86c7edSAndroid Build Coastguard Worker
15*bb86c7edSAndroid Build Coastguard Workerfunction(ruy_include_directories NAME DEPS)
16*bb86c7edSAndroid Build Coastguard Worker  target_include_directories(${NAME}
17*bb86c7edSAndroid Build Coastguard Worker    PUBLIC
18*bb86c7edSAndroid Build Coastguard Worker      "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>"
19*bb86c7edSAndroid Build Coastguard Worker      "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
20*bb86c7edSAndroid Build Coastguard Worker  )
21*bb86c7edSAndroid Build Coastguard Workerendfunction()
22