set(RGBDSRC src/calibrate.cpp src/local.cpp src/disparity.cpp src/source.cpp src/stereovideo.cpp src/middlebury_source.cpp src/net.cpp src/streamer.cpp src/colour.cpp src/group.cpp # src/algorithms/rtcensus.cpp # src/algorithms/rtcensus_sgm.cpp # src/algorithms/opencv_sgbm.cpp # src/algorithms/opencv_bm.cpp src/cb_segmentation.cpp ) if (HAVE_REALSENSE) list(APPEND RGBDSRC "src/realsense_source.cpp") endif() if (LibArchive_FOUND) list(APPEND RGBDSRC src/snapshot.cpp src/snapshot_source.cpp ) endif (LibArchive_FOUND) if (LIBSGM_FOUND) list(APPEND RGBDSRC "src/algorithms/fixstars_sgm.cpp") endif (LIBSGM_FOUND) if (CUDA_FOUND) list(APPEND RGBDSRC src/algorithms/disp2depth.cu # "src/algorithms/opencv_cuda_bm.cpp" # "src/algorithms/opencv_cuda_bp.cpp" # "src/algorithms/rtcensus.cu" # "src/algorithms/rtcensus_sgm.cu" # "src/algorithms/consistency.cu" # "src/algorithms/sparse_census.cu" # "src/algorithms/tex_filter.cu" # "src/algorithms/nick1.cu" # "src/algorithms/nick.cpp") ) endif (CUDA_FOUND) add_library(ftlrgbd ${RGBDSRC}) # target_compile_options(ftlrgbd PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-fPIC>) # target_compile_options(ftlrgbd PUBLIC "-DMAKE_SHARED") target_include_directories(ftlrgbd PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include> PRIVATE src) if (CUDA_FOUND) set_property(TARGET ftlrgbd PROPERTY CUDA_SEPARABLE_COMPILATION OFF) endif() #target_include_directories(cv-node PUBLIC ${PROJECT_SOURCE_DIR}/include) target_link_libraries(ftlrgbd ftlcommon ${OpenCV_LIBS} ${LIBSGM_LIBRARIES} ${CUDA_LIBRARIES} Eigen3::Eigen ${REALSENSE_LIBRARY} ftlnet ${LibArchive_LIBRARIES}) add_subdirectory(test)