<commit_before>cmake_minimum_required(VERSION 2.8)
# TODO headers as dependencies
# TODO shared/static switch CMake-style
set(libOpenVG_SOURCES 
    shExtensions.c
    shArrays.c
    shVectors.c
    shPath.c
    shImage.c
    shPaint.c
    shGeometry.c
    shPipeline.c
    shParams.c
    shContext.c
    shVgu.c
)
set(libOpenVG_HEADERS
    shDefs.h
    shExtensions.h
    shArrayBase.h
    shArrays.h
    shVectors.h
    shPath.h
    shImage.h
    shPaint.h
    shGeometry.h
    shContext.h
)
add_definitions(-ansi -pedantic -DHAVE_CONFIG_H)
include_directories(${OPENGL_INCLUDE_DIR})
# TODO what if OpenGL library has nonstandard location?
add_library(OpenVG SHARED ${libOpenVG_SOURCES})
target_link_libraries(OpenVG ${OPENGL_LIBRARIES})
SET_TARGET_PROPERTIES( OpenVG PROPERTIES COMPILE_FLAGS -fPIC)

install(TARGETS OpenVG DESTINATION lib)<commit_msg>Switch to C99. (It’s 2014!)<commit_after>cmake_minimum_required(VERSION 2.8)
# TODO headers as dependencies
# TODO shared/static switch CMake-style
set(libOpenVG_SOURCES 
    shExtensions.c
    shArrays.c
    shVectors.c
    shPath.c
    shImage.c
    shPaint.c
    shGeometry.c
    shPipeline.c
    shParams.c
    shContext.c
    shVgu.c
)
set(libOpenVG_HEADERS
    shDefs.h
    shExtensions.h
    shArrayBase.h
    shArrays.h
    shVectors.h
    shPath.h
    shImage.h
    shPaint.h
    shGeometry.h
    shContext.h
)
add_definitions(-std=c99 -pedantic -DHAVE_CONFIG_H)
include_directories(${OPENGL_INCLUDE_DIR})
# TODO what if OpenGL library has nonstandard location?
add_library(OpenVG SHARED ${libOpenVG_SOURCES})
target_link_libraries(OpenVG ${OPENGL_LIBRARIES})
SET_TARGET_PROPERTIES( OpenVG PROPERTIES COMPILE_FLAGS -fPIC)

install(TARGETS OpenVG DESTINATION lib)
{'fraction_non_alphanumeric': 0.07536231884057971, 'fraction_numerical': 0.006956521739130435, 'mean_word_length': 3.7944444444444443, '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': '2712924', 'n_tokens_mistral': 677, 'n_tokens_neox': 653, 'n_words': 121}