<commit_before>cmake_minimum_required(VERSION 2.6)
project(apriltags)

#add_definitions(-pg) #"-fopenmp)

# pull in the pods macros. See cmake/pods.cmake for documentation
set(POD_NAME apriltags)
include(cmake/pods.cmake)

file(GLOB SOURCE_FILES "src/*.cc")
include_directories(AprilTags . /opt/local/include)
add_library(apriltags ${SOURCE_FILES})

# working around on annoying OpenCV 2.4 bug that renders pkgconfig useless (reason: malformed --libs)
# without this bug would just need to add "opencv" to pods_use_pkg_config_packages below)
set(OpenCV_DIR ${PROJECT_SOURCE_DIR}/cmake)
find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(apriltags ${OpenCV_LIBS}) #-pg) #-fopenmp)
target_link_libraries(apriltags -L/opt/local/lib/) # MacPorts special treatment...

pods_use_pkg_config_packages(apriltags eigen3)

pods_install_libraries(apriltags)

file(GLOB header_files "AprilTags/*.h")
pods_install_headers(${header_files} DESTINATION AprilTags/)

pods_install_pkg_config_file(apriltags
    LIBS -lapriltags
    REQUIRES eigen3 opencv
    VERSION 1.0.0)

add_subdirectory(example)<commit_msg>opencv removed from pkg_config because of erroneous pkgconfig entry in Ubuntu 12.04 version of opencv<commit_after>cmake_minimum_required(VERSION 2.6)
project(apriltags)

#add_definitions(-pg) #"-fopenmp)

# pull in the pods macros. See cmake/pods.cmake for documentation
set(POD_NAME apriltags)
include(cmake/pods.cmake)

file(GLOB SOURCE_FILES "src/*.cc")
include_directories(AprilTags . /opt/local/include)
add_library(apriltags ${SOURCE_FILES})

# working around on annoying OpenCV 2.4 bug that renders pkgconfig useless (reason: malformed --libs)
# without this bug would just need to add "opencv" to pods_use_pkg_config_packages below)
set(OpenCV_DIR ${PROJECT_SOURCE_DIR}/cmake)
find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(apriltags ${OpenCV_LIBS}) #-pg) #-fopenmp)
target_link_libraries(apriltags -L/opt/local/lib/) # MacPorts special treatment...

pods_use_pkg_config_packages(apriltags eigen3)

pods_install_libraries(apriltags)

file(GLOB header_files "AprilTags/*.h")
pods_install_headers(${header_files} DESTINATION AprilTags/)

pods_install_pkg_config_file(apriltags
    LIBS -lapriltags
    REQUIRES eigen3 #opencv
    VERSION 1.0.0)

add_subdirectory(example)
{'fraction_non_alphanumeric': 0.097997443544951, 'fraction_numerical': 0.009373668512995313, 'mean_word_length': 6.9324324324324325, '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': '1945450', 'n_tokens_mistral': 893, 'n_tokens_neox': 839, 'n_words': 175}