<commit_before>cmake_minimum_required(VERSION 2.8)

project("SofaPreconditioner")

include(${SOFA_CMAKE_DIR}/pre.cmake)

set(HEADER_FILES

    initPreconditioner.h 
    linearsolver/ShewchukPCGLinearSolver.h 
    linearsolver/JacobiPreconditioner.h 
    linearsolver/JacobiPreconditioner.inl 
    linearsolver/BlockJacobiPreconditioner.h 
    linearsolver/BlockJacobiPreconditioner.inl 
    linearsolver/SSORPreconditioner.h 
    linearsolver/SSORPreconditioner.inl 
    linearsolver/WarpPreconditioner.h 
    linearsolver/WarpPreconditioner.inl 
    linearsolver/PrecomputedWarpPreconditioner.h 
    linearsolver/PrecomputedWarpPreconditioner.inl

    )
    
set(SOURCE_FILES

    initPreconditioner.cpp 
    linearsolver/ShewchukPCGLinearSolver.cpp 
    linearsolver/JacobiPreconditioner.cpp 
    linearsolver/BlockJacobiPreconditioner.cpp 
    linearsolver/SSORPreconditioner.cpp 
    linearsolver/WarpPreconditioner.cpp 
    linearsolver/PrecomputedWarpPreconditioner.cpp
 
    )
    

include_directories("${SOFA_EXTLIBS_DIR}/csparse")

add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES})

set(COMPILER_DEFINES "SOFA_BUILD_PRECONDITIONER" )
set(LINKER_DEPENDENCIES SofaDenseSolver SofaImplicitOdeSolver SofaSimpleFem )

if(EXTERNAL_HAVE_CSPARSE)
    include_directories("${SOFA_EXTLIBS_DIR}/csparse")
    list(APPEND LINKER_DEPENDENCIES SofaSparseSolver)
endif()
    
include(${SOFA_CMAKE_DIR}/post.cmake)<commit_msg>r9259/sofa : FIX: SofaPreconditioner does not include csparse directories twice anymore<commit_after>cmake_minimum_required(VERSION 2.8)

project("SofaPreconditioner")

include(${SOFA_CMAKE_DIR}/pre.cmake)

set(HEADER_FILES

    initPreconditioner.h 
    linearsolver/ShewchukPCGLinearSolver.h 
    linearsolver/JacobiPreconditioner.h 
    linearsolver/JacobiPreconditioner.inl 
    linearsolver/BlockJacobiPreconditioner.h 
    linearsolver/BlockJacobiPreconditioner.inl 
    linearsolver/SSORPreconditioner.h 
    linearsolver/SSORPreconditioner.inl 
    linearsolver/WarpPreconditioner.h 
    linearsolver/WarpPreconditioner.inl 
    linearsolver/PrecomputedWarpPreconditioner.h 
    linearsolver/PrecomputedWarpPreconditioner.inl
    )
    
set(SOURCE_FILES

    initPreconditioner.cpp 
    linearsolver/ShewchukPCGLinearSolver.cpp 
    linearsolver/JacobiPreconditioner.cpp 
    linearsolver/BlockJacobiPreconditioner.cpp 
    linearsolver/SSORPreconditioner.cpp 
    linearsolver/WarpPreconditioner.cpp 
    linearsolver/PrecomputedWarpPreconditioner.cpp
    )

add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES})

set(COMPILER_DEFINES "SOFA_BUILD_PRECONDITIONER" )
set(LINKER_DEPENDENCIES SofaDenseSolver SofaImplicitOdeSolver SofaSimpleFem )

if(EXTERNAL_HAVE_CSPARSE)
    include_directories("${SOFA_EXTLIBS_DIR}/csparse")
    list(APPEND LINKER_DEPENDENCIES SofaSparseSolver)
endif()
    
include(${SOFA_CMAKE_DIR}/post.cmake)
{'fraction_non_alphanumeric': 0.06955017301038062, 'fraction_numerical': 0.002768166089965398, 'mean_word_length': 5.41019955654102, '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': '3623734', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1024, 'n_words': 93}