blob: 8493309f40b5a45102c3a912ea3605c5b446bdde [file] [log] [blame]
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001# Copyright (c) 2017 ARM Limited.
2#
3# SPDX-License-Identifier: MIT
4#
5# Permission is hereby granted, free of charge, to any person obtaining a copy
6# of this software and associated documentation files (the "Software"), to
7# deal in the Software without restriction, including without limitation the
8# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9# sell copies of the Software, and to permit persons to whom the Software is
10# furnished to do so, subject to the following conditions:
11#
12# The above copyright notice and this permission notice shall be included in all
13# copies or substantial portions of the Software.
14#
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21# SOFTWARE.
22cmake_minimum_required (VERSION 3.1)
23
24include_directories(${CMAKE_SOURCE_DIR}/../include)
25
26set(arm_compute_test_benchmark_TARGET_DEFINITIONS
27 ${arm_compute_test_benchmark_TARGET_DEFINITIONS}
28 -DOPENCL
29 PARENT_SCOPE
30)
31
32set(arm_compute_test_benchmark_TARGET_INCLUDES
33 ${arm_compute_test_benchmark_TARGET_INCLUDES}
34 ${CMAKE_SOURCE_DIR}/../include
35 PARENT_SCOPE
36)
37
38set(arm_compute_test_benchmark_OPENCL_SOURCE_FILES
39 ${CMAKE_SOURCE_DIR}/CL/CLAccessor.h
40 ${CMAKE_CURRENT_SOURCE_DIR}/Bitwise/BitwiseAnd.cpp
41)
42
43add_library(arm_compute_test_benchmark_OPENCL OBJECT
44 ${arm_compute_test_benchmark_OPENCL_SOURCE_FILES}
45)
46
47set(arm_compute_test_benchmark_TARGET_OBJECTS
48 ${arm_compute_test_benchmark_TARGET_OBJECTS}
49 $<TARGET_OBJECTS:arm_compute_test_benchmark_OPENCL>
50 PARENT_SCOPE
51)
52
53set(arm_compute_test_benchmark_TARGET_LIBRARIES
54 ${arm_compute_test_benchmark_TARGET_LIBRARIES}
55 OpenCL
56 PARENT_SCOPE
57)