<commit_before># It gets inherited from the previous directory, hence it has to be removed explicitely
remove_definitions(-DBUILDING_TELEPATHY_QT4_YELL)
# We are building Telepathy-Qt4-Models
add_definitions(-DBUILDING_TELEPATHY_QT4_YELL_MODELS)

# Set source files
set(telepathy_qt4_models_SRCS
    accounts-model.cpp
    accounts-model-item.cpp
    avatar-image-provider.cpp
    contact-model-item.cpp
    conversation-item.cpp
    conversation-model.cpp
    flat-model-proxy.cpp
    tree-node.cpp
)

set(telepathy_qt4_models_MOC_SRCS
    accounts-model.h
    accounts-model-item.h
    avatar-image-provider.h
    contact-model-item.h
    conversation-item.h
    conversation-model.h
    flat-model-proxy.h
    tree-node.h
)

set(telepathy_qt4_models_HEADERS
    AccountsModel
    AccountsModelItem
    AvatarImageProvider
    ContactModelItem
    ConversationItem
    ConversationModel
    FlatModelProxy
    Global
    TreeNode
    accounts-model.h
    accounts-model-item.h
    avatar-image-provider.h
    contact-model-item.h
    conversation-item.h
    conversation-model.h
    flat-model-proxy.h
    global.h
    tree-node.h
)

tpqt4_generate_mocs(${telepathy_qt4_models_MOC_SRCS})

# Create library
if (ENABLE_COMPILER_COVERAGE)
    add_library(telepathy-qt4-models STATIC ${telepathy_qt4_models_SRCS} ${telepathy_qt4_models_MOC_SRCS})
else (ENABLE_COMPILER_COVERAGE)
    add_library(telepathy-qt4-models SHARED ${telepathy_qt4_models_SRCS} ${telepathy_qt4_models_MOC_SRCS})
endif (ENABLE_COMPILER_COVERAGE)

# Link
target_link_libraries(telepathy-qt4-models
    ${QT_QTDBUS_LIBRARY}
    ${QT_QTCORE_LIBRARY}
    ${QT_QTDECLARATIVE_LIBRARY}
    telepathy-qt4)

# Set the correct version number
set_target_properties(telepathy-qt4-models PROPERTIES
    SOVERSION ${TP_QT4_ABI_VERSION}
    VERSION ${TP_QT4_LIBRARY_VERSION})<commit_msg>Build the models library static<commit_after># It gets inherited from the previous directory, hence it has to be removed explicitely
remove_definitions(-DBUILDING_TELEPATHY_QT4_YELL)
# We are building Telepathy-Qt4-Models
add_definitions(-DBUILDING_TELEPATHY_QT4_YELL_MODELS)

# Set source files
set(telepathy_qt4_models_SRCS
    accounts-model.cpp
    accounts-model-item.cpp
    avatar-image-provider.cpp
    contact-model-item.cpp
    conversation-item.cpp
    conversation-model.cpp
    flat-model-proxy.cpp
    tree-node.cpp
)

set(telepathy_qt4_models_MOC_SRCS
    accounts-model.h
    accounts-model-item.h
    avatar-image-provider.h
    contact-model-item.h
    conversation-item.h
    conversation-model.h
    flat-model-proxy.h
    tree-node.h
)

set(telepathy_qt4_models_HEADERS
    AccountsModel
    AccountsModelItem
    AvatarImageProvider
    ContactModelItem
    ConversationItem
    ConversationModel
    FlatModelProxy
    Global
    TreeNode
    accounts-model.h
    accounts-model-item.h
    avatar-image-provider.h
    contact-model-item.h
    conversation-item.h
    conversation-model.h
    flat-model-proxy.h
    global.h
    tree-node.h
)

tpqt4_generate_mocs(${telepathy_qt4_models_MOC_SRCS})

# Create library
# if (ENABLE_COMPILER_COVERAGE)
    add_library(telepathy-qt4-models STATIC ${telepathy_qt4_models_SRCS} ${telepathy_qt4_models_MOC_SRCS})
# else (ENABLE_COMPILER_COVERAGE)
#    add_library(telepathy-qt4-models SHARED ${telepathy_qt4_models_SRCS} ${telepathy_qt4_models_MOC_SRCS})
# endif (ENABLE_COMPILER_COVERAGE)

# Link
target_link_libraries(telepathy-qt4-models
    ${QT_QTDBUS_LIBRARY}
    ${QT_QTCORE_LIBRARY}
    ${QT_QTDECLARATIVE_LIBRARY}
    telepathy-qt4)

if (ENABLE_COMPILER_COVERAGE)
    target_link_libraries(telepathy-qt4-yell gcov)
endif (ENABLE_COMPILER_COVERAGE)


# Set the correct version number
set_target_properties(telepathy-qt4-models PROPERTIES
    SOVERSION ${TP_QT4_YELL_ABI_VERSION}
    VERSION ${TP_QT4_YELL_LIBRARY_VERSION})
{'fraction_non_alphanumeric': 0.07610112066718791, 'fraction_numerical': 0.010164190774042221, 'mean_word_length': 4.301104972375691, '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': '1869924', 'n_tokens_mistral': 1408, 'n_tokens_neox': 1403, 'n_words': 199}