<commit_before>set(MAP_FILES
  rig.h
  shot.h
  landmark.h
  map.h
  ground_control_points.h
  defines.h
  dataviews.h
  observation.h
  tracks_manager.h
  src/landmark.cc
  src/map.cc
  src/rig.cc
  src/shot.cc
  src/dataviews.cc
  src/observation.cc
  src/tracks_manager.cc
)

add_library(map ${MAP_FILES})
target_link_libraries(map
  PUBLIC
    pybind11
    Eigen3::Eigen
  PRIVATE
    geo
    geometry
)

target_include_directories(map
  PUBLIC
    ${PYTHON_INCLUDE_DIRS}
    ${CMAKE_SOURCE_DIR}
)

pybind11_add_module(pymap python/pybind.cc)
target_link_libraries(pymap
  PRIVATE
    map
    geometry
    bundle
    pybind11
)

if (OPENSFM_BUILD_TESTS)
    set(MAP_TEST_FILES
        test/map_test.cc
        test/rig_test.cc
        test/tracks_manager_test.cc
    )

    add_executable(map_test ${MAP_TEST_FILES})
    target_include_directories(map_test PRIVATE ${CMAKE_SOURCE_DIR})
    target_link_libraries(map_test
                        PUBLIC
                        geometry<commit_msg>fix: build missing OpenMP include through the use of foundation lib's… (#884)<commit_after>set(MAP_FILES
  rig.h
  shot.h
  landmark.h
  map.h
  ground_control_points.h
  defines.h
  dataviews.h
  observation.h
  tracks_manager.h
  src/landmark.cc
  src/map.cc
  src/rig.cc
  src/shot.cc
  src/dataviews.cc
  src/observation.cc
  src/tracks_manager.cc
)

add_library(map ${MAP_FILES})
target_link_libraries(map
  PUBLIC
    pybind11
    Eigen3::Eigen
  PRIVATE
    geo
    geometry
    foundation
)

target_include_directories(map
  PUBLIC
    ${PYTHON_INCLUDE_DIRS}
    ${CMAKE_SOURCE_DIR}
)

pybind11_add_module(pymap python/pybind.cc)
target_link_libraries(pymap
  PRIVATE
    map
    geometry
    foundation
    bundle
    pybind11
)

if (OPENSFM_BUILD_TESTS)
    set(MAP_TEST_FILES
        test/map_test.cc
        test/rig_test.cc
        test/tracks_manager_test.cc
    )

    add_executable(map_test ${MAP_TEST_FILES})
    target_include_directories(map_test PRIVATE ${CMAKE_SOURCE_DIR})
    target_link_libraries(map_test
                        PUBLIC
                        geometry
{'fraction_non_alphanumeric': 0.07163323782234957, 'fraction_numerical': 0.008118433619866285, 'mean_word_length': 2.809090909090909, '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': '6487323', 'n_tokens_mistral': 828, 'n_tokens_neox': 782, 'n_words': 116}