Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2020 Arm Ltd and Contributors. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | cmake_minimum_required (VERSION 3.0.2) # 3.0.2 required for return() statement used in AddDllCopyCommands.cmake |
| 6 | project(pipe) |
| 7 | |
| 8 | set(additional_cmake_files) |
| 9 | list(APPEND additional_cmake_files |
| 10 | ../cmake/ArmnnVersion.cmake |
| 11 | ../cmake/Utils.cmake |
| 12 | ../cmake/GlobalConfig.cmake |
| 13 | ../cmake/AddDllCopyCommands.cmake) |
| 14 | |
| 15 | foreach(cmake_file ${additional_cmake_files}) |
| 16 | include(${cmake_file}) |
| 17 | endforeach() |
| 18 | |
| 19 | # Include the additional cmake files in their own target so that they will appear nicely in IDEs |
| 20 | add_custom_target(AdditionalCMakeFiles SOURCES ${additional_cmake_files}) |
| 21 | |
| 22 | include(GNUInstallDirs) |
| 23 | |
| 24 | include_directories(SYSTEM common/include) |
| 25 | include_directories(SYSTEM ${PROJECT_SOURCE_DIR}) |
| 26 | |
| 27 | set(BUILD_UNIT_TESTS 0) |
| 28 | |
| 29 | if(BUILD_TIMELINE_DECODER) |
| 30 | add_subdirectory(server/src/timelineDecoder) |
| 31 | add_subdirectory(common/src) |
| 32 | endif() |
| 33 | |
| 34 | if(BUILD_BASE_PIPE_SERVER) |
| 35 | add_subdirectory(server/src/basePipeServer) |
| 36 | endif() |