]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Pass proper compiler options for cufftw compilation
authorMichal Sojka <michal.sojka@cvut.cz>
Mon, 5 Mar 2018 15:43:53 +0000 (16:43 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 5 Mar 2018 15:43:53 +0000 (16:43 +0100)
src/CMakeLists.txt

index 9a145503a4b1f05018d57e715b1b109c93f1ad3f..4f7bdce24da842cf99fee762ce1068952bdc916b 100644 (file)
@@ -6,10 +6,9 @@ add_subdirectory(cn)
 set(KCF_LIB_SRC kcf.cpp kcf.h complexmat.hpp)
 
 add_library(kcf STATIC ${KCF_LIB_SRC})
-IF(OPENCV_CUFFT)
+target_link_libraries(kcf fhog cndata  ${OpenCV_LIBS})
+IF(use_cuda)
   include_directories(${CUDA_INCLUDE_DIRS})
-  target_link_libraries(kcf ${CUDA_LIBRARIES} ${OpenCV_LIBS} fhog cndata)
-ELSE()
-  target_link_libraries(kcf ${OpenCV_LIBS} fhog cndata)
+  target_link_libraries(kcf ${CUDA_LIBRARIES})
 ENDIF() #OPENCV_CUFFT
 set_target_properties(kcf PROPERTIES VERSION 1.0.0 SOVERSION 1)