Skip to content

Commit cfbdfe3

Browse files
committed
Add CMakeLists.txt
1 parent 834b1fe commit cfbdfe3

167 files changed

Lines changed: 1149 additions & 11 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
cmake_minimum_required(VERSION 2.6)
2+
3+
project(3dv_tutorial)
4+
set(CMAKE_CXX_STANDARD 11)
5+
set(CMAKE_BUILD_TYPE Release)
6+
find_package(OpenCV REQUIRED)
7+
8+
set(SRC_DIR "${CMAKE_SOURCE_DIR}/src")
9+
set(BIN_DIR "${CMAKE_SOURCE_DIR}/bin")
10+
11+
file(GLOB APP_SOURCES "${SRC_DIR}/*.cpp")
12+
foreach(app_source ${APP_SOURCES})
13+
string(REPLACE ".cpp" "" app_name ${app_source})
14+
string(REPLACE "${SRC_DIR}/" "" app_name ${app_name})
15+
add_executable(${app_name} ${app_source})
16+
target_link_libraries(${app_name} ${OpenCV_LIBS})
17+
install(TARGETS ${app_name} DESTINATION ${BIN_DIR})
18+
endforeach(app_source ${APP_SOURCES})

HOWTO_RUN.md

Lines changed: 20 additions & 5 deletions

README.md

Lines changed: 1 addition & 1 deletion

bin/data/07/calib.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
P0: 7.070912000000e+02 0.000000000000e+00 6.018873000000e+02 0.000000000000e+00 0.000000000000e+00 7.070912000000e+02 1.831104000000e+02 0.000000000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 0.000000000000e+00
2+
P1: 7.070912000000e+02 0.000000000000e+00 6.018873000000e+02 -3.798145000000e+02 0.000000000000e+00 7.070912000000e+02 1.831104000000e+02 0.000000000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 0.000000000000e+00
3+
P2: 7.070912000000e+02 0.000000000000e+00 6.018873000000e+02 4.688783000000e+01 0.000000000000e+00 7.070912000000e+02 1.831104000000e+02 1.178601000000e-01 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 6.203223000000e-03
4+
P3: 7.070912000000e+02 0.000000000000e+00 6.018873000000e+02 -3.334597000000e+02 0.000000000000e+00 7.070912000000e+02 1.831104000000e+02 1.930130000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 3.318498000000e-03

0 commit comments

Comments
 (0)