<commit_before># Copyright (C) 2007-2011 LuaDist.
# Created by <NAME>
# Redistribution and use of this file is allowed according to the terms of the MIT license.
# For details see the COPYRIGHT file distributed with LuaDist.
# Please note that the package source code is licensed under its own license.

project ( librs232 C )
cmake_minimum_required ( VERSION 2.6 )
include ( dist.cmake )

install_header ( include/librs232/rs232.h include/librs232/rs232_linux.h INTO librs232 )


# LIBVERSION 0:1:0
set ( SOVERSION 0 )
set ( VERSION 0.0.1 )

if ( CMAKE_BUILD_TYPE STREQUAL Debug )
  add_definitions ( -DRS232_DEBUG )
endif ()

include_directories ( include )
#unused: AM_CFLAGS = -Wall -ansi -pedantic -W -Wmissing-prototypes -Wmissing-declarations -Werror -std=gnu99 

if ( WIN32 )
  set ( SRCS src/rs232_windows.c src/resource.rc )
  add_definitions ( -DRS232_EXPORT )
else ()
  set ( SRCS src/rs232_linux.c )
endif ()

add_library ( librs232 SHARED src/rs232.c ${SRCS} )
#unused: set_target_properties ( librs232 PROPERTIES VERSION ${VERSION} )
#unused: set_target_properties ( librs232 PROPERTIES SOVERSION ${SOVERSION})
#set_target_properties ( librs232 PROPERTIES LINK_FLAGS -nostartfiles ) # is this really useful, other than saving nine bytes?
install_library ( librs232 )


if (CMAKE_BUILD_TYPE STREQUAL Debug )
  add_executable ( rs232_test src/rs232_test.c )
  target_link_libraries ( rs232_test librs232 )
  install_executable ( rs232_test )
  if ( NOT SKIP_TESTING )
    include ( CTest )<commit_msg>Cygwin compatibility changes for cmake 2.8<commit_after># Copyright (C) 2007-2011 LuaDist.
# Created by <NAME>
# Redistribution and use of this file is allowed according to the terms of the MIT license.
# For details see the COPYRIGHT file distributed with LuaDist.
# Please note that the package source code is licensed under its own license.

project ( librs232 C )
cmake_minimum_required ( VERSION 2.6 )
include ( dist.cmake )

install_header ( include/librs232/rs232.h include/librs232/rs232_linux.h INTO librs232 )


# LIBVERSION 0:1:0
set ( SOVERSION 0 )
set ( VERSION 0.0.1 )

if ( CMAKE_BUILD_TYPE STREQUAL Debug )
  add_definitions ( -DRS232_DEBUG )
endif ()

include_directories ( include )
#unused: AM_CFLAGS = -Wall -ansi -pedantic -W -Wmissing-prototypes -Wmissing-declarations -Werror -std=gnu99 

if ( WIN32 OR CYGWIN )
  set ( SRCS src/rs232_windows.c src/resource.rc )
  add_definitions ( -DRS232_EXPORT )
else ()
  set ( SRCS src/rs232_linux.c )
endif ()

add_library ( librs232 SHARED src/rs232.c ${SRCS} )
#unused: set_target_properties ( librs232 PROPERTIES VERSION ${VERSION} )
#unused: set_target_properties ( librs232 PROPERTIES SOVERSION ${SOVERSION})
#set_target_properties ( librs232 PROPERTIES LINK_FLAGS -nostartfiles ) # is this really useful, other than saving nine bytes?
install_library ( librs232 )


if (CMAKE_BUILD_TYPE STREQUAL Debug )
  add_executable ( rs232_test src/rs232_test.c )
  target_link_libraries ( rs232_test librs232 )
  install_executable ( rs232_test )
  if ( NOT SKIP_TESTING )
    include ( CTest )
{'fraction_non_alphanumeric': 0.08379523964786437, 'fraction_numerical': 0.05542875774372351, 'mean_word_length': 4.527927927927928, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5780654', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1052, 'n_words': 305}