-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
49 lines (39 loc) · 1.5 KB
/
CMakeLists.txt
File metadata and controls
49 lines (39 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2019-2022 Xilinx, Inc. All rights reserved.
# Copyright (C) 2022-2025 Advanced Micro Devices, Inc. All rights reserved.
# ================================================================
# Set up the include directories used in Linux and Windows for all
# of the plugins and subdirectories. Also, set the install
# locations for the plugins on Linux and Windows
# ================================================================
if (NOT WIN32)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${XRT_SOURCE_DIR}/include/1_2
)
set(XDP_PLUGIN_INSTALL_DIR ${XRT_INSTALL_PLUGIN_LIB_DIR})
else()
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${Boost_INCLUDE_DIRS}
${XRT_SOURCE_DIR}/include/1_2
${KHRONOS}/include
)
set(XDP_PLUGIN_INSTALL_DIR ${XRT_INSTALL_BIN_DIR})
endif()
# Only include xdp in npu, alveo, or legacy xrt components For npu,
# set up different flags used conditionally in in subdirectories.
#
# For upstream of XRT both NPU and ALVEO are built together and must
# be able to co-exist and install time. Since profile and debug are
# conditionally compiled for ALVEO, they are not included at all for
# upstreaming of XRT when building the ALVEO code path.
if (XRT_NPU)
set(XDP_CLIENT_BUILD_CMAKE "yes")
add_compile_options("-DSKIP_IOCTL")
add_subdirectory(profile)
elseif(NOT XRT_UPSTREAM AND (XRT_ALVEO OR XRT_EDGE))
add_subdirectory(appdebug)
add_subdirectory(debug)
add_subdirectory(profile)
endif()