-
Notifications
You must be signed in to change notification settings - Fork 895
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
29 lines (27 loc) · 951 Bytes
/
CMakeLists.txt
File metadata and controls
29 lines (27 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
set(DENSE_FILES
depthmap_bind.h
depthmap.h
src/depthmap.cc
)
add_library(dense ${DENSE_FILES})
target_link_libraries(dense PRIVATE foundation)
target_include_directories(dense PRIVATE ${CMAKE_SOURCE_DIR})
if (OPENSFM_BUILD_TESTS)
set(DENSE_TEST_FILES
test/depthmap_test.cc
)
add_executable(dense_test ${DENSE_TEST_FILES})
target_include_directories(dense_test PRIVATE ${CMAKE_SOURCE_DIR} ${GTEST_INCLUDE_DIRS})
target_link_libraries(dense_test
PUBLIC
dense
${TEST_MAIN}
${OpenCV_LIBS})
add_test(dense_test dense_test)
endif()
pybind11_add_module(pydense python/pybind.cc)
target_include_directories(pydense PRIVATE ${GLOG_INCLUDE_DIR})
target_link_libraries(pydense PRIVATE dense foundation pybind11::headers)
set_target_properties(pydense PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${opensfm_SOURCE_DIR}/.."
)