forked from NVIDIA/cuda-quantum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
41 lines (33 loc) · 1.3 KB
/
CMakeLists.txt
File metadata and controls
41 lines (33 loc) · 1.3 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
# ============================================================================ #
# Copyright (c) 2022 - 2026 NVIDIA Corporation & Affiliates. #
# All rights reserved. #
# #
# This source code and the accompanying materials are made available under #
# the terms of the Apache License 2.0 which accompanies this distribution. #
# ============================================================================ #
set(INTERFACE_POSITION_INDEPENDENT_CODE ON)
message(STATUS "Building REST QPU.")
add_library(cudaq-rest-qpu SHARED RemoteRESTQPU.cpp)
add_subdirectory(helpers)
target_include_directories(cudaq-rest-qpu PRIVATE .
PUBLIC
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/runtime>
$<INSTALL_INTERFACE:include>)
if (AWSSDK_ROOT)
set(SERVICE_COMPONENTS braket s3-crt sts)
find_package(AWSSDK REQUIRED COMPONENTS ${SERVICE_COMPONENTS})
else()
set(AWSSDK_LINK_LIBRARIES "")
endif()
target_link_libraries(cudaq-rest-qpu
PUBLIC
cudaq-operator
cudaq-common
PRIVATE
cudaq-mlir-runtime
fmt::fmt-header-only
cudaq
cudaq-platform-default
nvqir
${AWSSDK_LINK_LIBRARIES})
install(TARGETS cudaq-rest-qpu DESTINATION lib)