Finn Williams | 2ed809c | 2020-04-20 21:21:07 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2020 Arm Ltd. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | |
| 6 | if(BUILD_BASE_PIPE_SERVER) |
| 7 | set(BasePipeServer_sources) |
| 8 | list(APPEND BasePipeServer_sources |
Finn Williams | 0c8cb99 | 2020-05-07 10:38:15 +0100 | [diff] [blame] | 9 | BasePipeServer.cpp |
| 10 | BasePipeServer.hpp |
| 11 | ConnectionHandler.cpp |
| 12 | ConnectionHandler.hpp) |
Finn Williams | 2ed809c | 2020-04-20 21:21:07 +0100 | [diff] [blame] | 13 | |
Finn Williams | 0c8cb99 | 2020-05-07 10:38:15 +0100 | [diff] [blame] | 14 | include_directories(${PROJECT_SOURCE_DIR}/profiling/common/include) |
| 15 | |
| 16 | if (BUILD_UNIT_TESTS) |
| 17 | target_include_directories(UnitTests PRIVATE ${PROJECT_SOURCE_DIR}/profiling/server/src/basePipeServer) |
| 18 | target_include_directories(UnitTests PUBLIC ${PROJECT_SOURCE_DIR}/profiling/common/include) |
| 19 | endif() |
Finn Williams | 2ed809c | 2020-04-20 21:21:07 +0100 | [diff] [blame] | 20 | |
| 21 | add_library_ex(armnnBasePipeServer SHARED ${BasePipeServer_sources}) |
Finn Williams | 0c8cb99 | 2020-05-07 10:38:15 +0100 | [diff] [blame] | 22 | |
Finn Williams | 2ed809c | 2020-04-20 21:21:07 +0100 | [diff] [blame] | 23 | set_target_properties(armnnBasePipeServer PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) |
| 24 | set_target_properties(armnnBasePipeServer PROPERTIES VERSION ${GENERIC_LIB_VERSION} |
| 25 | SOVERSION ${GENERIC_LIB_SOVERSION}) |
| 26 | |
Rob Hughes | bc873d2 | 2020-05-20 13:11:37 +0100 | [diff] [blame] | 27 | target_include_directories(armnnBasePipeServer PRIVATE ${PROJECT_SOURCE_DIR}/src/armnnUtils) |
| 28 | |
Rob Hughes | b98032f | 2020-04-24 11:41:34 +0100 | [diff] [blame] | 29 | target_link_libraries(armnnBasePipeServer armnn) |
| 30 | if ("${CMAKE_SYSTEM_NAME}" STREQUAL Windows) |
| 31 | target_link_libraries(armnnBasePipeServer Ws2_32.lib) |
| 32 | endif() |
| 33 | |
Finn Williams | 2ed809c | 2020-04-20 21:21:07 +0100 | [diff] [blame] | 34 | install(TARGETS armnnBasePipeServer |
| 35 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 36 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |
| 37 | endif() |