Skip to content
Snippets Groups Projects
CMakeLists.txt 1.39 KiB
Newer Older
# Need to include staged files and libs
include_directories(${PROJECT_SOURCE_DIR}/vision/include)
#include_directories(${PROJECT_BINARY_DIR})
set(CVNODESRC
	src/main.cpp
	src/calibrate.cpp
	src/local.cpp
	src/sync.cpp
	src/algorithms/rtcensus.cpp
	src/algorithms/rtcensus_sgm.cpp
	src/algorithms/opencv_sgbm.cpp
	src/algorithms/opencv_bm.cpp
	src/algorithms/elas.cpp
if (LIBSGM_FOUND)
	list(APPEND CVNODESRC "src/algorithms/fixstars_sgm.cpp")
endif (LIBSGM_FOUND)

	list(APPEND CVNODESRC
		"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")
add_executable(ftl-vision ${CVNODESRC})
add_dependencies(ftl-vision ftlcommon)
add_dependencies(ftl-vision ftlnet)
add_dependencies(ftl-vision ftlrender)
add_dependencies(ftl-vision libelas)
set_property(TARGET ftl-vision PROPERTY CUDA_SEPARABLE_COMPILATION ON)
Nicolas Pope's avatar
Nicolas Pope committed
endif()
Nicolas Pope's avatar
Nicolas Pope committed
#target_include_directories(cv-node PUBLIC ${PROJECT_SOURCE_DIR}/include)
Nicolas Pope's avatar
Nicolas Pope committed
target_link_libraries(ftl-vision ftlcommon ftlrender Threads::Threads libelas ${OpenCV_LIBS} ${LIBSGM_LIBRARIES} ${CUDA_LIBRARIES} glog::glog ftlnet)