Skip to content

Commit

Permalink
Explicit boost dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dorian3d committed May 1, 2016
1 parent 7c1ba67 commit 3b66445
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,37 @@ endif(BUILD_DUtilsCV)

if(BUILD_DVision)
set(HDRS
include/DVision/BRIEF.h include/DVision/DVision.h include/DVision/HSolver.h include/DVision/Matches.h
include/DVision/DVision.h include/DVision/HSolver.h include/DVision/Matches.h
include/DVision/PMVSCamera.h include/DVision/PixelPointFile.h
include/DVision/BundleCamera.h include/DVision/FSolver.h include/DVision/ImageFunctions.h include/DVision/PLYFile.h
include/DVision/PatchFile.h include/DVision/SurfSet.h
${HDRS})
set(SRCS
src/DVision/BRIEF.cpp src/DVision/FSolver.cpp src/DVision/ImageFunctions.cpp src/DVision/PLYFile.cpp
src/DVision/FSolver.cpp src/DVision/ImageFunctions.cpp src/DVision/PLYFile.cpp
src/DVision/PatchFile.cpp src/DVision/SurfSet.cpp
src/DVision/BundleCamera.cpp src/DVision/HSolver.cpp src/DVision/Matches.cpp src/DVision/PMVSCamera.cpp
src/DVision/PixelPointFile.cpp
${SRCS})

find_package(Boost QUIET) # For dynamic_bitset
if (Boost_FOUND)
set(HDRS include/DVision/BRIEF.h ${HDRS})
set(SRCS src/DVision/BRIEF.cpp ${SRCS})
endif(Boost_FOUND)
endif(BUILD_DVision)


if(BUILD_DUtilsCV OR BUILD_DVision)
find_package(OpenCV REQUIRED)
endif(BUILD_DUtilsCV OR BUILD_DVision)

set(LIB_SHARED "SHARED")
if(WIN32)
set(LIB_SHARED "STATIC")
endif(WIN32)

include_directories(include/DUtils include/DUtilsCV include/DVision ${OpenCV_INCLUDE_DIRS})
add_library(${PROJECT_NAME} SHARED ${SRCS})
add_library(${PROJECT_NAME} ${LIB_SHARED} ${SRCS})
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})

configure_file(src/DLib.cmake.in
Expand Down

0 comments on commit 3b66445

Please # to comment.