CMake: Add DL and RT libraries

This commit is contained in:
2023-04-10 22:39:34 +02:00
parent de2cfd15dc
commit 49cf0dfa01

View File

@@ -33,4 +33,4 @@ TARGET_INCLUDE_DIRECTORIES(ImageAnalysis PUBLIC
fast-feedback-indexer/eigen)
FIND_LIBRARY(CUDART_LIBRARY cudart_static PATHS ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES} REQUIRED)
TARGET_LINK_LIBRARIES(ImageAnalysis CommonFunctions ${CUDART_LIBRARY})
TARGET_LINK_LIBRARIES(ImageAnalysis CommonFunctions ${CUDART_LIBRARY} ${CMAKE_DL_LIBS} rt)