<commit_before>include(FindPkgConfig)

# Include the directory itself as a path to include directories
SET(CMAKE_INCLUDE_CURRENT_DIR ON)

# Find OpenCV library files
FIND_PACKAGE( OpenCV REQUIRED )

# Create a variable containing all .cpp files:
FILE(GLOB files *.cpp)

PKG_SEARCH_MODULE(Unicap REQUIRED libunicap)

INCLUDE_DIRECTORIES(${Unicap_INCLUDE_DIRS})

# Create an executable file from sources:
ADD_LIBRARY(srcCameraUniCap SHARED ${files})

# Link external libraries
TARGET_LINK_LIBRARIES(srcCameraUniCap ${OpenCV_LIBS} ${DisCODe_LIBRARIES} ${Unicap_LIBRARIES} )

INSTALL_SOURCE(srcCameraUniCap)<commit_msg>dodanie warunku, aby kompilacja nie wymagala UNICAP; caly czas pozostaje problem wynikajacy ze stosowania ADD_SOURCE<commit_after>include(FindPkgConfig)

# Include the directory itself as a path to include directories
SET(CMAKE_INCLUDE_CURRENT_DIR ON)

# Find OpenCV library files
FIND_PACKAGE( OpenCV REQUIRED )

PKG_SEARCH_MODULE(Unicap libunicap)

IF(Unicap_FOUND)

# Create a variable containing all .cpp files:
FILE(GLOB files *.cpp)

INCLUDE_DIRECTORIES(${Unicap_INCLUDE_DIRS})

# Create an executable file from sources:
ADD_LIBRARY(srcCameraUniCap SHARED ${files})

# Link external libraries
TARGET_LINK_LIBRARIES(srcCameraUniCap ${OpenCV_LIBS} ${DisCODe_LIBRARIES} ${Unicap_LIBRARIES} )

INSTALL_SOURCE(srcCameraUniCap)

ENDIF(Unicap_FOUND)
{'fraction_non_alphanumeric': 0.0719002201027146, 'fraction_numerical': 0.0, 'mean_word_length': 7.973684210526316, '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': '4655514', 'n_tokens_mistral': 509, 'n_tokens_neox': 476, 'n_words': 116}