You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exercise_2/3rdparty/colmap-dev/lib/SiftGPU/CMakeLists.txt

55 lines
1.1 KiB

if(NOT IS_MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
endif()
add_definitions("-DSIFTGPU_NO_DEVIL")
set(SIFT_GPU_SOURCE_FILES
FrameBufferObject.cpp
FrameBufferObject.h
GlobalUtil.cpp
GlobalUtil.h
GLTexImage.cpp
GLTexImage.h
ProgramGLSL.cpp
ProgramGLSL.h
ProgramGPU.h
PyramidGL.cpp
PyramidGL.h
ShaderMan.cpp
ShaderMan.h
SiftGPU.cpp
SiftGPU.h
SiftMatch.cpp
SiftMatch.h
SiftPyramid.cpp
SiftPyramid.h
)
if(CUDA_ENABLED)
add_definitions("-DCUDA_SIFTGPU_ENABLED")
set(SIFT_GPU_SOURCE_FILES
${SIFT_GPU_SOURCE_FILES}
CuTexImage.cpp
CuTexImage.h
ProgramCU.cu
ProgramCU.h
PyramidCU.cpp
PyramidCU.h
SiftMatchCU.cpp
SiftMatchCU.h
)
COLMAP_ADD_STATIC_CUDA_LIBRARY(sift_gpu ${SIFT_GPU_SOURCE_FILES})
else()
COLMAP_ADD_STATIC_LIBRARY(sift_gpu ${SIFT_GPU_SOURCE_FILES})
endif()
target_link_libraries(sift_gpu
${SIFT_GPU_LIBRARIES}
${GLEW_LIBRARIES}
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
)