<commit_before># CMake minimum version dependency
cmake_minimum_required( VERSION 3.0.0 FATAL_ERROR )

if( DEFINED ENV{TCLAP_HOME} )
    message( "TCLAP_HOME variable set to $ENV{TCLAP_HOME}" )
else()
    message( FATAL_ERROR "TCLAP_HOME variable is required!" )
endif()

# Project name
project( "wavgen" )

# Compiler and linker flags
set( CPP_COMPILE_FLAGS "-g -Wall -std=c++11" )
#set( CPP_LINK_FLAGS "" )

# Header files locations
include_directories( 
    include 
    $ENV{TCLAP_HOME}/include
)

# Main project library
add_library( wavgen STATIC
    src/audio/WaveParameters.cpp
    src/audio/PcmSample.cpp
    src/audio/SineGenerator.cpp
    src/audio/SawToothGenerator.cpp
    src/audio/TriangleGenerator.cpp
    src/audio/SquareGenerator.cpp
    src/audio/utils.cpp
    src/audio/GeneratorFactory.cpp
)

# Demo application: sources
add_executable( sndtest
    src/main.cpp
)

# Demo application: required libraries
target_link_libraries( sndtest
    wavgen
)

# Set the compiler and linker flags for particular targets
set_target_properties( wavgen PROPERTIES COMPILE_FLAGS ${CPP_COMPILE_FLAGS} )
set_target_properties( sndtest PROPERTIES COMPILE_FLAGS ${CPP_COMPILE_FLAGS} )
#set_target_properties( sndtest PROPERTIES LINK_FLAGS ${CPP_LINK_FLAGS} )

# Target install
install( TARGETS sndtest DESTINATION bin )
install( TARGETS wavgen DESTINATION lib )
install( DIRECTORY 
    include/ DESTINATION include/${CMAKE_PROJECT_NAME}
    FILES_MATCHING PATTERN "*.h" 
)<commit_msg>Rename targets - executable: wavegen - lib: wavegen-lib<commit_after># CMake minimum version dependency
cmake_minimum_required( VERSION 3.0.0 FATAL_ERROR )

if( DEFINED ENV{TCLAP_HOME} )
    message( "TCLAP_HOME variable set to $ENV{TCLAP_HOME}" )
else()
    message( FATAL_ERROR "TCLAP_HOME variable is required!" )
endif()

# Project name
project( "wavgen" )

# Compiler and linker flags
set( CPP_COMPILE_FLAGS "-g -Wall -std=c++11" )
set( CPP_LINK_FLAGS "-oS" )

# Header files locations
include_directories( 
    include 
    $ENV{TCLAP_HOME}/include
)

# Main project library
add_library( wavgen-lib STATIC
    src/audio/WaveParameters.cpp
    src/audio/PcmSample.cpp
    src/audio/SineGenerator.cpp
    src/audio/SawToothGenerator.cpp
    src/audio/TriangleGenerator.cpp
    src/audio/SquareGenerator.cpp
    src/audio/utils.cpp
    src/audio/GeneratorFactory.cpp
)

# Demo application: sources
add_executable( wavgen
    src/main.cpp
)

# Demo application: required libraries
target_link_libraries( wavgen
    wavgen-lib
)

# Set the compiler and linker flags for particular targets
set_target_properties( wavgen-lib PROPERTIES COMPILE_FLAGS ${CPP_COMPILE_FLAGS} )
set_target_properties( wavgen PROPERTIES COMPILE_FLAGS ${CPP_COMPILE_FLAGS} )
set_target_properties( wavgen PROPERTIES LINK_FLAGS ${CPP_LINK_FLAGS} )

# Target install
install( TARGETS wavgen DESTINATION bin )
install( TARGETS wavgen-lib DESTINATION lib )
install( FILES 
    include/audio/types.h 
    include/audio/PcmSample.h 
    DESTINATION include/${CMAKE_PROJECT_NAME}/audio
    
)
{'fraction_non_alphanumeric': 0.08607095926412615, 'fraction_numerical': 0.0032851511169513796, 'mean_word_length': 4.64935064935065, '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': '3773579', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1046, 'n_words': 240}