<commit_before>cmake_minimum_required(VERSION 2.6)

PROJECT(opus)

# message("Source Dir:" ${opus_SOURCE_DIR})

SET(EXECUTABLE_OUTPUT_PATH ${opus_BINARY_DIR})
SET(LIBRARY_OUTPUT_PATH ${opus_BINARY_DIR})
SET(RUNTIME_OUTPUT_DIRECTORY ${opus_BINARY_DIR})

SET(opus_BIN ${opus_BINARY_DIR})

# message("opus_SOURCE_DIR directories:" ${opus_SOURCE_DIR})

add_definitions(/DHAVE_CONFIG_H)

IF(WIN32)
IF(MSVC12)
# message("Detected MSVC12 compiler")
set(MSVC_VER VC12)
ELSEIF(MSVC11)
# message("Detected MSVC11 compiler")
set(MSVC_VER VC11)
ELSEIF(MSVC10)
# message("Detected MSVC10 compiler")
set(MSVC_VER VC10)
ELSE(MSVC12)
message("WARNING: Unknown/unsupported MSVC version")
ENDIF(MSVC12)
ENDIF(WIN32)

IF(WIN32)
SET(opusIncludes
${opus_SOURCE_DIR}
${opus_SOURCE_DIR}/include
${opus_SOURCE_DIR}/win32
)
ELSEIF(UNIX)
# Include directories
SET(opusIncludes
${opus_SOURCE_DIR}
${opus_SOURCE_DIR}/include
/usr/local/include
)
ENDIF(WIN32)

# message("opusIncludes directories:" ${opusIncludes})

# lib directories
IF(WIN32)
SET(opusLink
${opus_SOURCE_DIR}/lib
)
ELSEIF(UNIX)
SET(opusLink
${opus_SOURCE_DIR}/lib
/usr/local/lib
/usr/lib<commit_msg>Added Unicode flags for Visual Studio in cmake<commit_after>cmake_minimum_required(VERSION 2.6)

PROJECT(opus)

# message("Source Dir:" ${opus_SOURCE_DIR})

SET(EXECUTABLE_OUTPUT_PATH ${opus_BINARY_DIR})
SET(LIBRARY_OUTPUT_PATH ${opus_BINARY_DIR})
SET(RUNTIME_OUTPUT_DIRECTORY ${opus_BINARY_DIR})

SET(opus_BIN ${opus_BINARY_DIR})

# message("opus_SOURCE_DIR directories:" ${opus_SOURCE_DIR})

add_definitions(/DHAVE_CONFIG_H)

IF(MSVC)
add_definitions(-DUNICODE -D_UNICODE)
ENDIF(MSVC)

IF(WIN32)
SET(opusIncludes
${opus_SOURCE_DIR}
${opus_SOURCE_DIR}/include
${opus_SOURCE_DIR}/win32
)
ELSEIF(UNIX)
# Include directories
SET(opusIncludes
${opus_SOURCE_DIR}
${opus_SOURCE_DIR}/include
/usr/local/include
)
ENDIF(WIN32)

# message("opusIncludes directories:" ${opusIncludes})

# lib directories
IF(WIN32)
SET(opusLink
${opus_SOURCE_DIR}/lib
)
ELSEIF(UNIX)
SET(opusLink
${opus_SOURCE_DIR}/lib
/usr/local/lib
/usr/lib
{'fraction_non_alphanumeric': 0.13200194836824158, 'fraction_numerical': 0.022406234778373113, 'mean_word_length': 9.479591836734693, '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': '4524476', 'n_tokens_mistral': 903, 'n_tokens_neox': 796, 'n_words': 124}