<commit_before>cmake_minimum_required(VERSION 2.8)
project(libvis)

set(libvis_VERSION_MAJOR 0)
set(libvis_VERSION_MINOR 1)
set(libvis_VERSION_PATCH 0)

message(STATUS "Building libvis")
macro_build_info()

list(APPEND includes ${CMAKE_CURRENT_SOURCE_DIR}/include)

find_package(OpenCV COMPONENTS core imgproc highgui REQUIRED)
list(APPEND libraries ${OpenCV_LIBS})
list(APPEND includes ${OpenCV_INCLUDE_DIRS})

find_package(VLFeat REQUIRED)
list(APPEND libraries ${VLFEAT_LIBRARIES})
list(APPEND includes ${VLFEAT_INCLUDE_DIRS})

find_package(Boost COMPONENTS filesystem iostreams serialization system REQUIRED)
list(APPEND includes ${Boost_INCLUDE_DIRS})
list(APPEND libraries ${Boost_LIBRARIES})

file(GLOB imsearch_SRCS src/*.c src/*.cpp)

list(REMOVE_DUPLICATES includes)
include_directories(${includes})

if(BUILD_STATIC_LIBRARIES)
    add_library(vis STATIC ${imsearch_SRCS})
else()
    add_library(vis SHARED ${imsearch_SRCS})
endif()
target_link_libraries(vis ${libraries})

if(ENABLE_CTAGS)
    add_ctags_target(vis)
endif()

if(ENABLE_TESTING)
    add_subdirectory(test)
endif()

add_notes_target()
<commit_msg>Remove dependency of ctags target<commit_after>cmake_minimum_required(VERSION 2.8)
project(libvis)

set(libvis_VERSION_MAJOR 0)
set(libvis_VERSION_MINOR 1)
set(libvis_VERSION_PATCH 0)

message(STATUS "Building libvis")
macro_build_info()

list(APPEND includes ${CMAKE_CURRENT_SOURCE_DIR}/include)

find_package(OpenCV COMPONENTS core imgproc highgui REQUIRED)
list(APPEND libraries ${OpenCV_LIBS})
list(APPEND includes ${OpenCV_INCLUDE_DIRS})

find_package(VLFeat REQUIRED)
list(APPEND libraries ${VLFEAT_LIBRARIES})
list(APPEND includes ${VLFEAT_INCLUDE_DIRS})

find_package(Boost COMPONENTS filesystem iostreams serialization system REQUIRED)
list(APPEND includes ${Boost_INCLUDE_DIRS})
list(APPEND libraries ${Boost_LIBRARIES})

file(GLOB imsearch_SRCS src/*.c src/*.cpp)

list(REMOVE_DUPLICATES includes)
include_directories(${includes})

if(BUILD_STATIC_LIBRARIES)
    add_library(vis STATIC ${imsearch_SRCS})
else()
    add_library(vis SHARED ${imsearch_SRCS})
endif()
target_link_libraries(vis ${libraries})

if(ENABLE_CTAGS)
    add_ctags_target()
endif()

if(ENABLE_TESTING)
    add_subdirectory(test)
endif()

add_notes_target()

{'fraction_non_alphanumeric': 0.09907120743034056, 'fraction_numerical': 0.004422821760283061, 'mean_word_length': 9.235294117647058, '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': '3909963', 'n_tokens_mistral': 860, 'n_tokens_neox': 807, 'n_words': 152}