<commit_before>cmake_minimum_required( VERSION 2.6 )
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

if (NOT CMAKE_BUILD_TYPE)
	message(STATUS "No build type selected, default to Release")
	set(CMAKE_BUILD_TYPE "Release" CACHE STRING "build type" FORCE)
endif()


project( vrlt )

set( BUILD_MULTIVIEW TRUE CACHE BOOL "Build MultiView module" )
set( BUILD_FEATURE_EXTRACTION TRUE CACHE BOOL "Build FeatureExtraction module" )
set( BUILD_FEATURE_MATCHER TRUE CACHE BOOL "Build FeatureMatcher module" )
set( BUILD_ESTIMATOR TRUE CACHE BOOL "Build Estimator module" )
set( BUILD_GLUTILS TRUE CACHE BOOL "Build GLUtils module" )
set( BUILD_PATCHTRACKER TRUE CACHE BOOL "Build PatchTracker module" )
set( BUILD_LOCALIZER TRUE CACHE BOOL "Build Localizer module" )
set( BUILD_IMAGECACHE TRUE CACHE BOOL "Build ImageCache module" )
set( BUILD_BUNDLEADJUSTMENT TRUE CACHE BOOL "Build BundleAdjusment module" )
set( BUILD_SFMPIPELINE TRUE CACHE BOOL "Build reconstruction pipeline programs" )
set( BUILD_TEST TRUE CACHE BOOL "Build test programs" )

set( USE_ACCELERATE FALSE CACHE BOOL "Use Accelerate framework" )
set( USE_DISPATCH TRUE CACHE BOOL "Use Grand Central Dispatch for multithreading" )

find_package( Eigen3 REQUIRED )
include_directories( ${EIGEN3_INCLUDE_DIR} )

find_package( Sophus REQUIRED )
include_directories( ${SOPHUS_INCLUDE_DIR} )

find_package( GeographicLib REQUIRED )
include_directories( ${GEOGRAPHICLIB_INCLUDE_DIR} )

find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )

if( USE_ACCELERATE )
find_library( ACCELERATE Accelerate REQUIRED )
add_definitions( -DUSE_ACCELERATE )
endif()

if( USE_DISPATCH )
add_definitions( -DUSE_DISPATCH )<commit_msg>Edited CMakeLists to look for homebrew opencv3<commit_after>cmake_minimum_required( VERSION 2.6 )
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

if (NOT CMAKE_BUILD_TYPE)
	message(STATUS "No build type selected, default to Release")
	set(CMAKE_BUILD_TYPE "Release" CACHE STRING "build type" FORCE)
endif()


project( vrlt )

set( BUILD_MULTIVIEW TRUE CACHE BOOL "Build MultiView module" )
set( BUILD_FEATURE_EXTRACTION TRUE CACHE BOOL "Build FeatureExtraction module" )
set( BUILD_FEATURE_MATCHER TRUE CACHE BOOL "Build FeatureMatcher module" )
set( BUILD_ESTIMATOR TRUE CACHE BOOL "Build Estimator module" )
set( BUILD_GLUTILS TRUE CACHE BOOL "Build GLUtils module" )
set( BUILD_PATCHTRACKER TRUE CACHE BOOL "Build PatchTracker module" )
set( BUILD_LOCALIZER TRUE CACHE BOOL "Build Localizer module" )
set( BUILD_IMAGECACHE TRUE CACHE BOOL "Build ImageCache module" )
set( BUILD_BUNDLEADJUSTMENT TRUE CACHE BOOL "Build BundleAdjusment module" )
set( BUILD_SFMPIPELINE TRUE CACHE BOOL "Build reconstruction pipeline programs" )
set( BUILD_TEST TRUE CACHE BOOL "Build test programs" )

set( USE_ACCELERATE FALSE CACHE BOOL "Use Accelerate framework" )
set( USE_DISPATCH TRUE CACHE BOOL "Use Grand Central Dispatch for multithreading" )

find_package( Eigen3 REQUIRED )
include_directories( ${EIGEN3_INCLUDE_DIR} )

find_package( Sophus REQUIRED )
include_directories( ${SOPHUS_INCLUDE_DIR} )

find_package( GeographicLib REQUIRED )
include_directories( ${GEOGRAPHICLIB_INCLUDE_DIR} )

find_package( OpenCV REQUIRED HINTS /usr/local/opt/opencv3/share )
include_directories( ${OpenCV_INCLUDE_DIRS} )

if( USE_ACCELERATE )
find_library( ACCELERATE Accelerate REQUIRED )
add_definitions( -DUSE_ACCELERATE )
endif()

if( USE_DISPATCH )
add_definitions( -DUSE_DISPATCH )
{'fraction_non_alphanumeric': 0.07511337868480726, 'fraction_numerical': 0.002834467120181406, 'mean_word_length': 6.984162895927602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1145953', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1202, 'n_words': 344}