Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 1 | # 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. |
| 22 | cmake_minimum_required (VERSION 3.1) |
| 23 | |
| 24 | include_directories(${CMAKE_SOURCE_DIR}/../include) |
| 25 | |
| 26 | set(arm_compute_test_validation_OPENCL_SOURCE_FILES |
| 27 | ${CMAKE_SOURCE_DIR}/CL/CLAccessor.h |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 28 | ${CMAKE_CURRENT_SOURCE_DIR}/CLFixture.h |
| 29 | ${CMAKE_CURRENT_SOURCE_DIR}/CLFixture.cpp |
| 30 | ${CMAKE_CURRENT_SOURCE_DIR}/BitwiseAnd.cpp |
SiCong Li | bacaf9a | 2017-06-19 13:41:45 +0100 | [diff] [blame] | 31 | ${CMAKE_CURRENT_SOURCE_DIR}/Box3x3.cpp |
| 32 | ${CMAKE_CURRENT_SOURCE_DIR}/DepthConvert.cpp |
| 33 | ${CMAKE_CURRENT_SOURCE_DIR}/FillBorder.cpp |
SiCong Li | 5a53664 | 2017-06-19 14:47:05 +0100 | [diff] [blame] | 34 | ${CMAKE_CURRENT_SOURCE_DIR}/Gaussian3x3.cpp |
SiCong Li | 3eb263e | 2017-06-19 15:31:43 +0100 | [diff] [blame] | 35 | ${CMAKE_CURRENT_SOURCE_DIR}/Gaussian5x5.cpp |
SiCong Li | bacaf9a | 2017-06-19 13:41:45 +0100 | [diff] [blame] | 36 | ` ${CMAKE_CURRENT_SOURCE_DIR}/IntegralImage.cpp |
Giorgio Arena | 50f9fd7 | 2017-06-19 17:05:30 +0100 | [diff] [blame] | 37 | ${CMAKE_CURRENT_SOURCE_DIR}/Sobel3x3.cpp |
| 38 | ${CMAKE_CURRENT_SOURCE_DIR}/Sobel5x5.cpp |
SiCong Li | bacaf9a | 2017-06-19 13:41:45 +0100 | [diff] [blame] | 39 | ${CMAKE_CURRENT_SOURCE_DIR}/Threshold.cpp |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 40 | ) |
| 41 | |
| 42 | add_library(arm_compute_test_validation_OPENCL OBJECT |
| 43 | ${arm_compute_test_validation_OPENCL_SOURCE_FILES} |
| 44 | ) |
| 45 | |
| 46 | set(arm_compute_test_validation_TARGET_OBJECTS |
| 47 | ${arm_compute_test_validation_TARGET_OBJECTS} |
| 48 | $<TARGET_OBJECTS:arm_compute_test_validation_OPENCL> |
| 49 | PARENT_SCOPE |
| 50 | ) |
| 51 | |
| 52 | set(arm_compute_test_validation_TARGET_LIBRARIES |
| 53 | ${arm_compute_test_validation_TARGET_LIBRARIES} |
| 54 | OpenCL |
| 55 | PARENT_SCOPE |
| 56 | ) |