Commit c6afe52e authored by Dmitry I. Lyakh's avatar Dmitry I. Lyakh
Browse files

CMAKE build system fix for cuQuantum.

parent f4ae4aa6
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -16,11 +16,19 @@ add_library(${LIBRARY_NAME}
add_dependencies(${LIBRARY_NAME} exatensor-build)

target_include_directories(${LIBRARY_NAME}
  PUBLIC . graph optimizer executor executor/cuquantum ${CMAKE_SOURCE_DIR}/src/exatn)
  PUBLIC . graph optimizer executor ${CMAKE_SOURCE_DIR}/src/exatn)

if(CUQUANTUM)
  target_include_directories(${LIBRARY_NAME} PUBLIC executor/cuquantum)
endif()

target_link_libraries(${LIBRARY_NAME}
                      PUBLIC CppMicroServices exatn-utils exatn-numerics exatn-runtime-graph
                      PRIVATE Boost::graph exatn_runtime_cuquantum)
                      PRIVATE Boost::graph)

if(CUQUANTUM)
  target_link_libraries(${LIBRARY_NAME} PUBLIC exatn_runtime_cuquantum)
endif()

exatn_configure_library_rpath(${LIBRARY_NAME})