<commit_before>FILE(GLOB LibHeaders ../incl/*/*.h)
set(LIB_HEADERS ${LibHeaders} )

set(LIB_SOURCES
    sc_logic_7.cpp
    utilities.cpp
    report.cpp
    perf_estimator.cpp
    io-redirector.cpp
)

if(CCI_FOUND)
    set(LIB_SOURCES ${LIB_SOURCES} 
	    tracer_base.cpp
	    tracer.cpp
	    configurable_tracer.cpp
	    configurer.cpp
    	jsoncpp.cpp
    	value_registry.cpp
    )
endif()

if(SCV_FOUND)
    if(ZLIB_FOUND)
        set(LIB_SOURCES ${LIB_SOURCES} scv_tr_compressed.cpp)
    endif(ZLIB_FOUND)
    if(FALSE)
    	set(LIB_SOURCES ${LIB_SOURCES} scv_tr_binary/scv_tr_binary.cpp)
	    if(CONAN_LEVELDB_ROOT)
		    set(LIB_SOURCES ${LIB_SOURCES} scv_tr_ldb/scv_tr_ldb.cpp )
	    endif()
    endif()
    set(LIB_SOURCES ${LIB_SOURCES} scv_tr_sqlite/scv_tr_sqlite.cpp scv_tr_sqlite/sqlite3.c )
endif(SCV_FOUND)

# Define two variables in order not to repeat ourselves.
set(LIBRARY_NAME sc-components)

# Define the library
add_library(${LIBRARY_NAME} ${LIB_SOURCES})<commit_msg>Fixed setup for pre-3.13 cmake<commit_after>FILE(GLOB LibHeaders ../incl/*/*.h)
set(LIB_HEADERS ${LibHeaders} )

set(LIB_SOURCES
    sc_logic_7.cpp
    utilities.cpp
    report.cpp
    perf_estimator.cpp
    io-redirector.cpp
)

if(CCI_FOUND)
    set(LIB_SOURCES ${LIB_SOURCES} 
	    tracer_base.cpp
	    tracer.cpp
	    configurable_tracer.cpp
	    configurer.cpp
    	jsoncpp.cpp
    	value_registry.cpp
    )
endif()

if(SCV_FOUND)
    if(ZLIB_FOUND)
        set(LIB_SOURCES ${LIB_SOURCES} scv_tr_compressed.cpp)
    endif(ZLIB_FOUND)
    if(FALSE)
    	set(LIB_SOURCES ${LIB_SOURCES} scv_tr_binary/scv_tr_binary.cpp)
	    if(CONAN_LEVELDB_ROOT)
		    set(LIB_SOURCES ${LIB_SOURCES} scv_tr_ldb/scv_tr_ldb.cpp )
	    endif()
    endif()
    set(LIB_SOURCES ${LIB_SOURCES} scv_tr_sqlite/scv_tr_sqlite.cpp scv_tr_sqlite/sqlite3.c )
endif(SCV_FOUND)

# Define two variables in order not to repeat ourselves.
set(LIBRARY_NAME sc-components)
if(${CMAKE_VERSION} VERSION_LESS "3.13.0") 
	link_directories(${SystemC_LIBRARY_DIRS})
endif()

# Define the library
add_library(${LIBRARY_NAME} ${LIB_SOURCES})
{'fraction_non_alphanumeric': 0.10450623202301054, 'fraction_numerical': 0.0052732502396931925, 'mean_word_length': 3.8761682242990654, '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': '7442859', 'n_tokens_mistral': 932, 'n_tokens_neox': 847, 'n_words': 124}