From 6e8beda28b734c82555f8c566b1fe3123c7d3eac Mon Sep 17 00:00:00 2001 From: WrathfulSpatula Date: Wed, 22 May 2024 19:30:40 -0400 Subject: [PATCH] Link Qrack --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d8cba13..e41179c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,10 @@ project(qrack_device) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) +link_directories(/usr/local/lib/qrack /usr/lib/qrack) + add_library(qrack_device SHARED pennylane_qrack/qrack_device.cpp) +target_link_libraries(qrack_device qrack) target_include_directories(qrack_device PUBLIC /home/iamu/GitHub/catalyst/runtime/include) set_property(TARGET qrack_device PROPERTY POSITION_INDEPENDENT_CODE ON) install(TARGETS qrack_device LIBRARY DESTINATION pennylane_qrack)