forked from NVIDIA/cuda-quantum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (39 loc) · 1.48 KB
/
CMakeLists.txt
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
# ============================================================================ #
# Copyright (c) 2022 - 2025 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(CONFIG_FILES
CUDAQCommonConfig.cmake
CUDAQEmDefaultConfig.cmake
CUDAQNloptConfig.cmake
CUDAQSpinConfig.cmake
CUDAQOperatorConfig.cmake
CUDAQConfig.cmake
CUDAQEnsmallenConfig.cmake
CUDAQPlatformDefaultConfig.cmake
CUDAQPythonInteropConfig.cmake
)
set(LANG_FILES
CMakeCUDAQCompiler.cmake.in
CMakeCUDAQInformation.cmake
CMakeDetermineCUDAQCompiler.cmake
CMakeTestCUDAQCompiler.cmake
)
execute_process(
COMMAND git rev-parse HEAD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tpls/fmt
OUTPUT_VARIABLE CUDAQ_FMTLIB_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# Configure the file
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/NVQIRConfig.cmake.in
${CMAKE_BINARY_DIR}/cmake/Modules/NVQIRConfig.cmake
@ONLY
)
install(FILES ${CONFIG_FILES} DESTINATION lib/cmake/cudaq)
install(FILES ${LANG_FILES} DESTINATION lib/cmake/cudaq)
install(FILES ${CMAKE_BINARY_DIR}/cmake/Modules/NVQIRConfig.cmake DESTINATION lib/cmake/nvqir)