<commit_before>
###
# Intrinsic image analysis and SfM_Data container initialization
###
ADD_EXECUTABLE(openMVG_main_SfMInit_ImageListing main_SfMInit_ImageListing.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_SfMInit_ImageListing
  openMVG_system
  openMVG_image
  openMVG_features
  openMVG_exif
  openMVG_sfm
  easyexif
  )

#convert a v0.6 lists.txt file to the new sfm_data.X format
ADD_EXECUTABLE(openMVG_main_ConvertList main_ConvertList.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ConvertList
  openMVG_system
  openMVG_features
  openMVG_sfm
  )

# Installation rules
SET_PROPERTY(TARGET openMVG_main_SfMInit_ImageListing PROPERTY FOLDER OpenMVG/software)
INSTALL(TARGETS openMVG_main_SfMInit_ImageListing DESTINATION bin/)
SET_PROPERTY(TARGET openMVG_main_ConvertList PROPERTY FOLDER OpenMVG/software)
INSTALL(TARGETS openMVG_main_ConvertList DESTINATION bin/)

###
# Add executable that computes:
# - openMVG_main_ComputeFeatures: features and descriptors
# - openMVG_main_ComputeMatches: putative matches + geometric filtered matches
###

ADD_EXECUTABLE(openMVG_main_ComputeFeatures main_ComputeFeatures.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeFeatures
  openMVG_system
  openMVG_image
  openMVG_features
  openMVG_multiview
  openMVG_sfm
  openMVG_exif
  easyexif
  stlplus
  vlsift
  )

IF(OpenMVG_USE_CCTAG)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeFeatures
  ${CCTAG_LIBRARIES}
  )
ENDIF(OpenMVG_USE_CCTAG)

ADD_EXECUTABLE(openMVG_main_ComputeMatches main_ComputeMatches.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeMatches
  openMVG_system
  openMVG_features
  openMVG_multiview
  openMVG_sfm
  openMVG_matching_image_collection
  stlplus
  )

# Installation rules
SET_PROPERTY(TARGET openMVG_main_ComputeFeatures PROPERTY FOLDER OpenMVG/software)
INSTALL(TARGETS openMVG_main_ComputeFeatures DESTINATION bin/)
SET_PROPERTY(TARGET openMVG_main_ComputeMatches PROPERTY FOLDER OpenMVG/software)
INSTALL(TARGETS openMVG_main_ComputeMatches DESTINATION bin/)

###
# SfM Pipelines
# - Incremental/Sequential
# - Global
###
# - Convert SfM_Data format (from one to another)
# - Pair filtering (from frustum)
# - Compute structure from known camera poses
# - Compute structure color
###
ADD_EXECUTABLE(openMVG_main_IncrementalSfM main_IncrementalSfM.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_IncrementalSfM
  openMVG_system
  openMVG_image
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_GlobalSfM main_GlobalSfM.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_GlobalSfM
  openMVG_system
  openMVG_image
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_ConvertSfM_DataFormat main_ConvertSfM_DataFormat.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ConvertSfM_DataFormat
  openMVG_system
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_Align main_Align.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_Align
  openMVG_system
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_FrustumFiltering main_FrustumFiltering.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_FrustumFiltering
  openMVG_system
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_ComputeStructureFromKnownPoses main_ComputeStructureFromKnownPoses.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeStructureFromKnownPoses
  openMVG_system
  openMVG_features
  openMVG_sfm
  stlplus
  )

IF(OpenMVG_USE_CCTAG)
ADD_EXECUTABLE(openMVG_main_ComputeCCTagStructureFromKnownPoses main_ComputeCCTagStructureFromKnownPoses.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeCCTagStructureFromKnownPoses
  openMVG_system
  openMVG_features
  openMVG_sfm
  stlplus
  ${CCTAG_LIBRARIES}
  )
SET_PROPERTY(TARGET openMVG_main_ComputeCCTagStructureFromKnownPoses PROPERTY FOLDER OpenMVG/software)
INSTALL(TARGETS openMVG_main_ComputeCCTagStructureFromKnownPoses DESTINATION bin/)
ENDIF()

ADD_EXECUTABLE(openMVG_main_ComputeSfM_DataColor main_ComputeSfM_DataColor.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeSfM_DataColor
  openMVG_system
  openMVG_image
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_rigTransform main_rigTransform.cpp)
INSTALL(TARGETS openMVG_main_rigTransform DESTINATION bin/)
TARGET_LINK_LIBRARIES(openMVG_main_rigTransform
                        openMVG_localization
                        openMVG_dataio
                        openMVG_rig
                        ${BOOST_LIBRARIES})
if(OpenMVG_USE_ALEMBIC)
    target_link_libraries(openMVG_main_rigTransform openMVG_sfm ${ABC_LIBRARIES})
endif()

<commit_msg>Only build if we have alembic.<commit_after>
###
# Intrinsic image analysis and SfM_Data container initialization
###
ADD_EXECUTABLE(openMVG_main_SfMInit_ImageListing main_SfMInit_ImageListing.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_SfMInit_ImageListing
  openMVG_system
  openMVG_image
  openMVG_features
  openMVG_exif
  openMVG_sfm
  easyexif
  )

#convert a v0.6 lists.txt file to the new sfm_data.X format
ADD_EXECUTABLE(openMVG_main_ConvertList main_ConvertList.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ConvertList
  openMVG_system
  openMVG_features
  openMVG_sfm
  )

# Installation rules
SET_PROPERTY(TARGET openMVG_main_SfMInit_ImageListing PROPERTY FOLDER OpenMVG/software)
INSTALL(TARGETS openMVG_main_SfMInit_ImageListing DESTINATION bin/)
SET_PROPERTY(TARGET openMVG_main_ConvertList PROPERTY FOLDER OpenMVG/software)
INSTALL(TARGETS openMVG_main_ConvertList DESTINATION bin/)

###
# Add executable that computes:
# - openMVG_main_ComputeFeatures: features and descriptors
# - openMVG_main_ComputeMatches: putative matches + geometric filtered matches
###

ADD_EXECUTABLE(openMVG_main_ComputeFeatures main_ComputeFeatures.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeFeatures
  openMVG_system
  openMVG_image
  openMVG_features
  openMVG_multiview
  openMVG_sfm
  openMVG_exif
  easyexif
  stlplus
  vlsift
  )

IF(OpenMVG_USE_CCTAG)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeFeatures
  ${CCTAG_LIBRARIES}
  )
ENDIF(OpenMVG_USE_CCTAG)

ADD_EXECUTABLE(openMVG_main_ComputeMatches main_ComputeMatches.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeMatches
  openMVG_system
  openMVG_features
  openMVG_multiview
  openMVG_sfm
  openMVG_matching_image_collection
  stlplus
  )

# Installation rules
SET_PROPERTY(TARGET openMVG_main_ComputeFeatures PROPERTY FOLDER OpenMVG/software)
INSTALL(TARGETS openMVG_main_ComputeFeatures DESTINATION bin/)
SET_PROPERTY(TARGET openMVG_main_ComputeMatches PROPERTY FOLDER OpenMVG/software)
INSTALL(TARGETS openMVG_main_ComputeMatches DESTINATION bin/)

###
# SfM Pipelines
# - Incremental/Sequential
# - Global
###
# - Convert SfM_Data format (from one to another)
# - Pair filtering (from frustum)
# - Compute structure from known camera poses
# - Compute structure color
###
ADD_EXECUTABLE(openMVG_main_IncrementalSfM main_IncrementalSfM.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_IncrementalSfM
  openMVG_system
  openMVG_image
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_GlobalSfM main_GlobalSfM.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_GlobalSfM
  openMVG_system
  openMVG_image
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_ConvertSfM_DataFormat main_ConvertSfM_DataFormat.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ConvertSfM_DataFormat
  openMVG_system
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_Align main_Align.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_Align
  openMVG_system
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_FrustumFiltering main_FrustumFiltering.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_FrustumFiltering
  openMVG_system
  openMVG_features
  openMVG_sfm
  stlplus
  )

ADD_EXECUTABLE(openMVG_main_ComputeStructureFromKnownPoses main_ComputeStructureFromKnownPoses.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeStructureFromKnownPoses
  openMVG_system
  openMVG_features
  openMVG_sfm
  stlplus
  )

IF(OpenMVG_USE_CCTAG)
ADD_EXECUTABLE(openMVG_main_ComputeCCTagStructureFromKnownPoses main_ComputeCCTagStructureFromKnownPoses.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeCCTagStructureFromKnownPoses
  openMVG_system
  openMVG_features
  openMVG_sfm
  stlplus
  ${CCTAG_LIBRARIES}
  )
SET_PROPERTY(TARGET openMVG_main_ComputeCCTagStructureFromKnownPoses PROPERTY FOLDER OpenMVG/software)
INSTALL(TARGETS openMVG_main_ComputeCCTagStructureFromKnownPoses DESTINATION bin/)
ENDIF()

ADD_EXECUTABLE(openMVG_main_ComputeSfM_DataColor main_ComputeSfM_DataColor.cpp)
TARGET_LINK_LIBRARIES(openMVG_main_ComputeSfM_DataColor
  openMVG_system
  openMVG_image
  openMVG_features
  openMVG_sfm
  stlplus
  )

if(OpenMVG_USE_ALEMBIC)
ADD_EXECUTABLE(openMVG_main_rigTransform main_rigTransform.cpp)
INSTALL(TARGETS openMVG_main_rigTransform DESTINATION bin/)
TARGET_LINK_LIBRARIES(openMVG_main_rigTransform
                        openMVG_localization
                        openMVG_dataio
                        openMVG_rig
                        ${BOOST_LIBRARIES})
    target_link_libraries(openMVG_main_rigTransform openMVG_sfm ${ABC_LIBRARIES})
endif()


{'fraction_non_alphanumeric': 0.0407149950347567, 'fraction_numerical': 0.00044135495972635994, 'mean_word_length': 6.9578577699736615, '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': '3690516', 'n_tokens_mistral': 3682, 'n_tokens_neox': 3400, 'n_words': 451}