AttilioProvenzano-ARM | dd8b8a8 | 2019-04-26 09:06:06 +0100 | [diff] [blame] | 1 | # Copyright (c) 2019, Arm Limited and Contributors |
| 2 | # |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | # Permission is hereby granted, free of charge, |
| 6 | # to any person obtaining a copy of this software and associated documentation files (the "Software"), |
| 7 | # to deal in the Software without restriction, including without limitation the rights to |
| 8 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, |
| 9 | # and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
| 10 | # |
| 11 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
| 12 | # |
| 13 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
| 14 | # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 16 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 17 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 18 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 19 | # |
| 20 | |
AntCag | b6cd5a0 | 2019-01-17 16:06:17 +0000 | [diff] [blame] | 21 | cmake_minimum_required(VERSION 3.6) |
ryanoshea-arm | 9857f04 | 2019-01-16 14:29:22 +0000 | [diff] [blame] | 22 | |
| 23 | project(hwcpipe LANGUAGES C CXX) |
| 24 | |
| 25 | set(PROJECT_FILES |
AttilioProvenzano-ARM | dd8b8a8 | 2019-04-26 09:06:06 +0100 | [diff] [blame] | 26 | hwcpipe.h |
| 27 | cpu_profiler.h |
| 28 | gpu_profiler.h |
| 29 | value.h |
ryanoshea-arm | 9857f04 | 2019-01-16 14:29:22 +0000 | [diff] [blame] | 30 | |
AttilioProvenzano-ARM | dd8b8a8 | 2019-04-26 09:06:06 +0100 | [diff] [blame] | 31 | hwcpipe.cpp) |
ryanoshea-arm | 9857f04 | 2019-01-16 14:29:22 +0000 | [diff] [blame] | 32 | |
| 33 | if(UNIX AND NOT APPLE) |
| 34 | list(APPEND PROJECT_FILES |
AttilioProvenzano-ARM | dd8b8a8 | 2019-04-26 09:06:06 +0100 | [diff] [blame] | 35 | vendor/arm/mali/hwc.hpp |
| 36 | vendor/arm/mali/hwc_names.hpp |
| 37 | vendor/arm/mali/mali_profiler.h |
| 38 | vendor/arm/mali/mali_profiler.cpp) |
| 39 | |
| 40 | list(APPEND PROJECT_FILES |
| 41 | vendor/arm/pmu/pmu_counter.h |
| 42 | vendor/arm/pmu/pmu_profiler.h |
| 43 | vendor/arm/pmu/pmu_counter.cpp |
| 44 | vendor/arm/pmu/pmu_profiler.cpp) |
ryanoshea-arm | 9857f04 | 2019-01-16 14:29:22 +0000 | [diff] [blame] | 45 | endif() |
AttilioProvenzano-ARM | dd8b8a8 | 2019-04-26 09:06:06 +0100 | [diff] [blame] | 46 | |
ryanoshea-arm | 9857f04 | 2019-01-16 14:29:22 +0000 | [diff] [blame] | 47 | source_group("\\" FILES ${PROJECT_FILES}) |
| 48 | |
| 49 | add_library(${PROJECT_NAME} STATIC ${PROJECT_FILES}) |
| 50 | |
| 51 | target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
| 52 | |
AttilioProvenzano-ARM | dd8b8a8 | 2019-04-26 09:06:06 +0100 | [diff] [blame] | 53 | target_include_directories(${PROJECT_NAME} PUBLIC third_party) |
| 54 | |
ryanoshea-arm | 9857f04 | 2019-01-16 14:29:22 +0000 | [diff] [blame] | 55 | set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11) |