Skip to content

Commit b53777f

Browse files
author
swayfreeda
committed
first time
1 parent b1b4ace commit b53777f

File tree

188 files changed

+38513
-0
lines changed

Some content is hidden

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

188 files changed

+38513
-0
lines changed

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/ImageBasedModellingEduV1.0.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
cmake_minimum_required(VERSION 3.5)
2+
project(ImageBasedModellingEdu)
3+
4+
set(CMAKE_CXX_STANDARD 11)
5+
set(CMAKE_CXX_FLAGS "-fPIC")
6+
7+
add_subdirectory(core)
8+
#add_subdirectory(math)
9+
add_subdirectory(util)
10+
add_subdirectory(features)
11+
add_subdirectory(sfm)
12+
add_subdirectory(examples)

core/CMakeLists.txt

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
project(core)
2+
set(CMAKE_CXX_STANDARD 11)
3+
set(CMAKE_CXX_FLAGS "-fPIC")
4+
5+
6+
# find linpng
7+
find_package(PNG REQUIRED)
8+
if(PNG_FOUND)
9+
message("PNG found: ${PNG_LIBRARIES}")
10+
include_directories(${PNG_INCLUDE_DIRS})
11+
add_definitions(${PNG_DEFINITIONS})
12+
endif()
13+
14+
# find libjpeg
15+
find_package(JPEG REQUIRED)
16+
if(JPEG_FOUND)
17+
message("JPEG found: ${JPEG_LIBRARIES}")
18+
include_directories(${JPEG_INCLUDE_DIR})
19+
endif()
20+
21+
# find libtiff
22+
find_package(TIFF REQUIRED)
23+
if(TIFF_FOUND)
24+
message("TIFF found: ${TIFF_LIBRARIES}")
25+
include_directories(${TIFF_INCLUDE_DIR})
26+
endif()
27+
28+
include_directories("..")
29+
set(HEADERS
30+
defines.h
31+
bundle.h
32+
bundle_io.h
33+
camera.h
34+
image.h
35+
image_base.h
36+
image_color.h
37+
image_drawing.h
38+
image_exif.h
39+
image_io.h
40+
image_tools.h
41+
scene.h
42+
view.h
43+
)
44+
45+
set(SOURCE_FILES
46+
bundle.cc
47+
bundle_io.cc
48+
camera.cc
49+
image_exif.cc
50+
image_io.cc
51+
image_tools.cc
52+
scene.cc
53+
view.cc
54+
)
55+
add_library(core ${HEADERS} ${SOURCE_FILES})
56+
target_link_libraries(core util ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${TIFF_LIBRARIES})
57+

core/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
MVE_ROOT := ../..
2+
TARGET := libmve.a
3+
include ${MVE_ROOT}/Makefile.inc
4+
5+
# Position independent code (-fPIC) is required for the UMVE plugin system.
6+
CXXFLAGS += -fPIC -I${MVE_ROOT}/libs
7+
LDLIBS += -lpng -ltiff -ljpeg
8+
9+
SOURCES := $(wildcard [^_]*.cc)
10+
${TARGET}: ${SOURCES:.cc=.o}
11+
$(AR) rcs $@ $^
12+
13+
_test%: _test%.o libmve.a libmve_util.a
14+
${LINK.cc} -o $@ $^ ${LDLIBS}
15+
16+
clean:
17+
${RM} ${TARGET} *.o Makefile.dep
18+
19+
.PHONY: clean

0 commit comments

Comments
 (0)