Debian Codegraph @

src/thirdparty/SiftGPU/CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 add_compile_definitions(SIFTGPU_NO_DEVIL)
2
3 if(SIMD_ENABLED AND IS_X86)
4 add_compile_definitions(SIFTGPU_USE_SSE_FOR)
5 if(MSVC)
6 add_compile_definitions(__SSE__)
7 endif()
8 endif()
9
10 set(OPTIONAL_CUDA_SRCS)
11 set(OPTIONAL_CUDA_LINK_LIBS)
12 if(CUDA_ENABLED)
13 add_compile_definitions(SIFTGPU_CUDA_ENABLED)
14 set(OPTIONAL_CUDA_SRCS
15 CuTexImage.h CuTexImage.cpp
16 ProgramCU.cu
17 ProgramCU.h
18 PyramidCU.h PyramidCU.cpp
19 SiftMatchCU.h SiftMatchCU.cpp)
20 set(OPTIONAL_CUDA_LINK_LIBS
21 CUDA::cudart
22 CUDA::curand
23 )
24 endif()
25
26 COLMAP_ADD_LIBRARY(
27 NAME colmap_sift_gpu
28 SRCS
29 FrameBufferObject.h FrameBufferObject.cpp
30 GlobalUtil.h GlobalUtil.cpp
31 GLTexImage.h GLTexImage.cpp
32 ProgramGLSL.h ProgramGLSL.cpp
33 ProgramGPU.h
34 PyramidGL.h PyramidGL.cpp
35 ShaderMan.h ShaderMan.cpp
36 SiftGPU.h SiftGPU.cpp
37 SiftMatch.h SiftMatch.cpp
38 SiftPyramid.h SiftPyramid.cpp
39 ${OPTIONAL_CUDA_SRCS}
40 PRIVATE_LINK_LIBS
41 OpenGL::GL
42 GLEW::GLEW
43 ${OPTIONAL_CUDA_LINK_LIBS}
44 )