<commit_before>cmake_minimum_required(VERSION 2.8)

project(LIBVORBIS C)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/../../")

find_package(Ogg REQUIRED)

include_directories(
    ${OGG_INCLUDE_DIR}
    ${PROJECT_SOURCE_DIR}/lib
)

set(LIBVORBIS_SRC
    lib/analysis.c
    lib/barkmel.c
    lib/bitrate.c
    lib/block.c
    lib/codebook.c
    lib/envelope.c
    lib/floor0.c
    lib/floor1.c
    lib/info.c
    lib/lookup.c
    lib/lpc.c
    lib/lsp.c
    lib/mapping0.c
    lib/mdct.c
    lib/psy.c
    lib/psytune.c
    lib/registry.c
    lib/res0.c
    lib/sharedbook.c
    lib/smallft.c
    lib/synthesis.c
    lib/tone.c
    lib/vorbisenc.c
    lib/window.c
)

set(LIBVORBIS_HEADER
    lib/backends.h
    lib/bitrate.h
    lib/codebook.h
    lib/codec_internal.h
    lib/envelope.h
    lib/highlevel.h
    lib/lookup.h
    lib/lookup_data.h
    lib/lpc.h
    lib/lsp.h
    lib/masking.h
    lib/mdct.h
    lib/misc.h
    lib/os.h
    lib/psy.h
    lib/registry.h
    lib/scales.h
    lib/smallft.h
    lib/window.h
)

if(WIN32 AND NOT MINGW)
    set(vorbis_defs win32/vorbis.def)
    set(vorbisfile_defs win32/vorbisfile.def)
endif()

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

add_library(vorbis SHARED ${LIBVORBIS_SRC} ${LIBVORBIS_HEADER} ${vorbis_defs})
add_library(vorbisfile SHARED lib/vorbisfile.c ${vorbisfile_defs})
add_library(vorbisfile_static STATIC lib/vorbisfile.c ${vorbisfile_defs})

if(UNIX)
    set(PLATFORM_LIBS m)
endif(UNIX)

target_link_libraries(vorbis ${OGG_LIBRARY} ${PLATFORM_LIBS})
target_link_libraries(vorbisfile vorbis ${OGG_LIBRARY})

if(NOT WIN32)
    set_target_properties(vorbisfile_static PROPERTIES OUTPUT_NAME vorbisfile)
endif(NOT WIN32)

install(TARGETS vorbis vorbisfile
    RUNTIME DESTINATION bin
    ARCHIVE DESTINATION lib
    LIBRARY DESTINATION lib
)

install(DIRECTORY include/vorbis DESTINATION include FILES_MATCHING PATTERN "*.h")<commit_msg>find ogg<commit_after>cmake_minimum_required(VERSION 2.8)

project(LIBVORBIS C)

find_package(Ogg REQUIRED)

include_directories(
    ${OGG_INCLUDE_DIR}
    ${PROJECT_SOURCE_DIR}/lib
    C:/projects/fifengine-dependencies/includes
)

set(LIBVORBIS_SRC
    lib/analysis.c
    lib/barkmel.c
    lib/bitrate.c
    lib/block.c
    lib/codebook.c
    lib/envelope.c
    lib/floor0.c
    lib/floor1.c
    lib/info.c
    lib/lookup.c
    lib/lpc.c
    lib/lsp.c
    lib/mapping0.c
    lib/mdct.c
    lib/psy.c
    lib/psytune.c
    lib/registry.c
    lib/res0.c
    lib/sharedbook.c
    lib/smallft.c
    lib/synthesis.c
    lib/tone.c
    lib/vorbisenc.c
    lib/window.c
)

set(LIBVORBIS_HEADER
    lib/backends.h
    lib/bitrate.h
    lib/codebook.h
    lib/codec_internal.h
    lib/envelope.h
    lib/highlevel.h
    lib/lookup.h
    lib/lookup_data.h
    lib/lpc.h
    lib/lsp.h
    lib/masking.h
    lib/mdct.h
    lib/misc.h
    lib/os.h
    lib/psy.h
    lib/registry.h
    lib/scales.h
    lib/smallft.h
    lib/window.h
)

if(WIN32 AND NOT MINGW)
    set(vorbis_defs win32/vorbis.def)
    set(vorbisfile_defs win32/vorbisfile.def)
endif()

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

add_library(vorbis SHARED ${LIBVORBIS_SRC} ${LIBVORBIS_HEADER} ${vorbis_defs})
add_library(vorbisfile SHARED lib/vorbisfile.c ${vorbisfile_defs})
add_library(vorbisfile_static STATIC lib/vorbisfile.c ${vorbisfile_defs})

if(UNIX)
    set(PLATFORM_LIBS m)
endif(UNIX)

target_link_libraries(vorbis ${OGG_LIBRARY} ${PLATFORM_LIBS})
target_link_libraries(vorbisfile vorbis ${OGG_LIBRARY})

if(NOT WIN32)
    set_target_properties(vorbisfile_static PROPERTIES OUTPUT_NAME vorbisfile)
endif(NOT WIN32)

install(TARGETS vorbis vorbisfile
    RUNTIME DESTINATION bin
    ARCHIVE DESTINATION lib
    LIBRARY DESTINATION lib
)

install(DIRECTORY include/vorbis DESTINATION include FILES_MATCHING PATTERN "*.h")
{'fraction_non_alphanumeric': 0.10268438884545218, 'fraction_numerical': 0.00833984884023977, 'mean_word_length': 3.283482142857143, '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': '656819', 'n_tokens_mistral': 1629, 'n_tokens_neox': 1620, 'n_words': 232}