forked from LiXingNi/openMVG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmake] OpenCV managed directly in root CMakeLists
instead of each target needs to find opencv etc...
- Loading branch information
Showing
3 changed files
with
41 additions
and
45 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
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,8 @@ | ||
if(OpenMVG_USE_OPENCV) | ||
add_definitions(-DTHIS_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}") | ||
add_executable( opencv_fitting main.cpp ) | ||
target_link_libraries( opencv_fitting ${OpenCV_LIBS} openMVG_multiview) | ||
install(TARGETS opencv_fitting DESTINATION bin/) | ||
endif(OpenMVG_USE_OPENCV) | ||
|
||
ADD_DEFINITIONS(-DTHIS_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}") | ||
|
||
find_package( OpenCV ) | ||
|
||
if(NOT OpenCV_FOUND) | ||
message(STATUS "WARNING: OpenCV was not found. If you want compile this sample, configure the OpenCV_DIR variable in src/software/opencv/accv12_demo/CMakelists.txt") | ||
else(NOT OpenCV_FOUND) | ||
|
||
add_executable( opencv_fitting main.cpp ) | ||
target_link_libraries( opencv_fitting ${OpenCV_LIBS} openMVG_multiview) | ||
|
||
INSTALL(TARGETS opencv_fitting DESTINATION bin/) | ||
|
||
endif(NOT OpenCV_FOUND) | ||
|