-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mikrosimage-cmake_install' into develop
- Loading branch information
Showing
21 changed files
with
210 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Locate the openMVG libraries. | ||
# | ||
# Defines the following variables: | ||
# | ||
# OPENMVG_FOUND - TRUE if the openMVG headers and libs are found | ||
# OPENMVG_INCLUDE_DIRS - The path to openMVG headers | ||
# | ||
# OPENMVG_LIBRARIES - All openMVG libraries | ||
# OPENMVG_LIBRARY_DIR - The directory where the libraries are located | ||
# | ||
# Accepts the following variables as input: | ||
# | ||
# OPENMVG_DIR - (as a CMake or environment variable) | ||
# The root directory of the openMVG install prefix | ||
|
||
MESSAGE(STATUS "Looking for OpenMVG.") | ||
|
||
FIND_PATH(OPENMVG_INCLUDE_DIR openMVG/version.h | ||
HINTS | ||
$ENV{OPENMVG_DIR}/include | ||
${OPENMVG_DIR}/include | ||
PATH_SUFFIXES | ||
openMVG | ||
) | ||
|
||
IF(OPENMVG_INCLUDE_DIR) | ||
MESSAGE(STATUS "OpenMVG headers found in ${OPENMVG_INCLUDE_DIRS}") | ||
ELSE() | ||
MESSAGE(STATUS "NOT FOUND") | ||
ENDIF (OPENMVG_INCLUDE_DIR) | ||
|
||
SET(OPENMVG_LIBRARIES_NAMES | ||
openMVG_numeric | ||
openMVG_system | ||
openMVG_image | ||
openMVG_kvld | ||
openMVG_lInftyComputerVision | ||
openMVG_multiview | ||
#find third_party libraries | ||
ceres | ||
stlplus | ||
easyexif | ||
lemon) | ||
|
||
FIND_LIBRARY(OPENMVG_LIBRARY NAMES ${OPENMVG_LIBRARIES_NAMES} | ||
HINTS | ||
$ENV{OPENMVG_DIR}/lib | ||
${OPENMVG_DIR}/lib | ||
PATH_SUFFIXES | ||
openMVG | ||
) | ||
GET_FILENAME_COMPONENT(OPENMVG_LIBRARY_DIR "${OPENMVG_LIBRARY}" PATH) | ||
|
||
SET(OPENMVG_LIBRARY "") | ||
FOREACH(lib ${OPENMVG_LIBRARIES_NAMES}) | ||
LIST(APPEND OPENMVG_LIBRARY ${lib}) | ||
ENDFOREACH() | ||
|
||
SET(OPENMVG_LIBRARIES ${OPENMVG_LIBRARY}) | ||
SET(OPENMVG_INCLUDE_DIRS ${OPENMVG_INCLUDE_DIR}) | ||
|
||
IF(OPENMVG_LIBRARY) | ||
MESSAGE(STATUS "OpenMVG libraries found: ${OPENMVG_LIBRARY}") | ||
MESSAGE(STATUS "OpenMVG libraries directories: ${OPENMVG_LIBRARY_DIR}") | ||
ENDIF (OPENMVG_LIBRARY) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
# handle the QUIETLY and REQUIRED arguments and set OPENMVG_FOUND to TRUE | ||
# if all listed variables are TRUE | ||
find_package_handle_standard_args(OpenMVG DEFAULT_MSG | ||
OPENMVG_LIBRARY OPENMVG_INCLUDE_DIR) | ||
|
||
MARK_AS_ADVANCED(OPENMVG_INCLUDE_DIR OPENMVG_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
|
||
ADD_LIBRARY(openMVG_kvld kvld.cpp kvld.h algorithm.cpp algorithm.h) | ||
TARGET_LINK_LIBRARIES(openMVG_kvld openMVG_image) | ||
SET_PROPERTY(TARGET openMVG_kvld PROPERTY FOLDER OpenMVG/OpenMVG) | ||
|
||
INSTALL(TARGETS openMVG_kvld DESTINATION lib/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
|
||
file( | ||
GLOB_RECURSE | ||
system_files_header | ||
*.hpp | ||
GLOB_RECURSE | ||
system_files_header | ||
*.hpp | ||
) | ||
file( | ||
GLOB_RECURSE | ||
system_files_cpp | ||
*.cpp | ||
GLOB_RECURSE | ||
system_files_cpp | ||
*.cpp | ||
) | ||
|
||
ADD_LIBRARY(openMVG_system | ||
${sytem_files_header} | ||
${system_files_cpp}) | ||
${sytem_files_header} | ||
${system_files_cpp}) | ||
SET_PROPERTY(TARGET openMVG_system PROPERTY FOLDER OpenMVG/OpenMVG) | ||
INSTALL(TARGETS openMVG_system DESTINATION lib/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) 2015 Pierre MOULON. | ||
|
||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
#ifndef OPENMVG_VERSION_H_ | ||
#define OPENMVG_VERSION_H_ | ||
|
||
#define OPENMVG_VERSION_MAJOR 0 | ||
#define OPENMVG_VERSION_MINOR 8 | ||
#define OPENMVG_VERSION_REVISION 0 | ||
|
||
// Preprocessor to string conversion | ||
#define OPENMVG_TO_STRING_HELPER(x) #x | ||
#define OPENMVG_TO_STRING(x) OPENMVG_TO_STRING_HELPER(x) | ||
|
||
// OpenMVG version as a string; for example "0.8.0". | ||
#define OPENMVG_VERSION_STRING CERES_TO_STRING(OPENMVG_VERSION_MAJOR) "." \ | ||
CERES_TO_STRING(OPENMVG_VERSION_MINOR) "." \ | ||
CERES_TO_STRING(OPENMVG_VERSION_REVISION) | ||
|
||
#endif // OPENMVG_VERSION_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.