<commit_before># Copyright (c) 2011 <NAME> <<EMAIL>>

cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(VMMLib)

enable_testing()

include_directories(include)
find_package(BLAS)

if(APPLE)
  find_library(LAPACK_LIBRARIES accelerate)
  if(LAPACK_LIBRARIES)
    set(LAPACK_FOUND TRUE)
  endif(LAPACK_LIBRARIES)
else(APPLE)
#  enable_language(Fortran OPTIONAL) # eile: Why needed?
  find_package(LAPACK)
endif(APPLE)

set(HEADERS
  include/vmmlib/ACKNOWLEDGEMENTS
  include/vmmlib/LICENSE
  include/vmmlib/aabb.hpp
  include/vmmlib/blas_daxpy.hpp
  include/vmmlib/blas_dgemm.hpp
  include/vmmlib/blas_dot.hpp
  include/vmmlib/blas_includes.hpp
  include/vmmlib/blas_types.hpp
  include/vmmlib/cp3_tensor.hpp
  include/vmmlib/cublas_dgemm.cu
  include/vmmlib/cublas_includes.hpp
  include/vmmlib/cublas_types.hpp
  include/vmmlib/enable_if.hpp
  include/vmmlib/exception.hpp
  include/vmmlib/frustum.hpp
  include/vmmlib/frustum_culler.hpp
  include/vmmlib/jacobi_solver.hpp
  include/vmmlib/lapack.hpp
  include/vmmlib/lapack/detail/clapack.h
  include/vmmlib/lapack/detail/f2c.h
  include/vmmlib/lapack_gaussian_elimination.hpp
  include/vmmlib/lapack_includes.hpp
  include/vmmlib/lapack_linear_least_squares.hpp
  include/vmmlib/lapack_svd.hpp
  include/vmmlib/lapack_sym_eigs.hpp
  include/vmmlib/lapack_types.hpp
  include/vmmlib/linear_least_squares.hpp
  include/vmmlib/math.hpp
  include/vmmlib/matrix.hpp
  include/vmmlib/matrix_functors.hpp
  include/vmmlib/matrix_pseudoinverse.hpp
  include/vmmlib/matrix_traits.hpp
  include/vmmlib/qr_decomposition.hpp
  include/vmmlib/qtucker3_tensor.hpp
  include/vmmlib/quaternion.hpp
  include/vmmlib/svd.hpp
  include/vmmlib/t3_converter.hpp
  include/vmmlib/t3_cublas_hooi.hpp
  include/vmmlib/t3_cublas_hosvd.hpp
  include/vmmlib/t3_cublas_ttm.hpp
  include/vmmlib/t3_hooi.hpp
  include/vmmlib/t3_hopm.hpp
  include/vmmlib/t3_hosvd.hpp
  include/vmmlib/t3_ihopm.hpp
  include/vmmlib/t3_ttm.hpp
  include/vmmlib/tensor3.hpp
  include/vmmlib/tensor3_iterator.hpp
  include/vmmlib/tucker3_exporter.hpp
  include/vmmlib/tucker3_importer.hpp
  include/vmmlib/tucker3_tensor.hpp
  include/vmmlib/validator.hpp
  include/vmmlib/vector.hpp
  include/vmmlib/vector_traits.hpp
  include/vmmlib/visibility.hpp
  include/vmmlib/vmmlib.hpp
  include/vmmlib/vmmlib_config.hpp
)

set(SOURCES
  tests/frustum_test.cpp
  tests/jacobi_test.cpp
  tests/matrix_test.cpp
  tests/perf_test.cpp
  tests/performance_test.cpp
  tests/qr_decomposition_test.cpp
  tests/quaternion_test.cpp
  tests/svd_test.cpp
  tests/timer.cpp
  tests/unit_test.cpp
  tests/vector_test.cpp
  tests/vmmlib_unit_tests_main.cpp
# tests/matrix_compare_perf_test.cpp
# tests/stringtests.cpp
# tests/vmmlib_lapack_main.cpp
# tests/vmmlib_performance_tests_main.cpp
)

if(LAPACK_FOUND)
  add_definitions(-DVMMLIB_USE_LAPACK)
  list(APPEND SOURCES
    tests/lapack_gaussian_elimination_test.cpp
    tests/lapack_linear_least_squares_test.cpp
    tests/lapack_svd_test.cpp
    tests/lapack_sym_eigs_test.cpp
    tests/svd_lapack_vs_old.cpp
  )
endif(LAPACK_FOUND)

if(BLAS_FOUND)
  add_definitions(-DVMMLIB_USE_BLAS)
  list(APPEND SOURCES
    tests/cp3_tensor_test.cpp
    tests/matrix_pseudoinverse_test.cpp
    tests/tensor3_iterator_test.cpp
    tests/tensor3_test.cpp
    tests/tucker3_tensor_test.cpp
  )
endif()

add_executable(vmmlib_test ${HEADERS} ${SOURCES})
if(LAPACK_FOUND)
  target_link_libraries(vmmlib_test ${LAPACK_LIBRARIES})
endif()
add_test(vmmlib_test vmmlib_test)

install(FILES ${HEADERS} DESTINATION include/vmmlib)
add_custom_target(package COMMENT "Packaging not done yet")
<commit_msg>Windows "fix"<commit_after># Copyright (c) 2011 <NAME> <<EMAIL>>

cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(VMMLib)

enable_testing()

include_directories(include)
find_package(BLAS)

if(APPLE)
  find_library(LAPACK_LIBRARIES accelerate)
  if(LAPACK_LIBRARIES)
    set(LAPACK_FOUND TRUE)
  endif(LAPACK_LIBRARIES)
else(APPLE)
#  enable_language(Fortran OPTIONAL) # eile: Why needed?
  find_package(LAPACK)
endif(APPLE)

set(HEADERS
  include/vmmlib/ACKNOWLEDGEMENTS
  include/vmmlib/LICENSE
  include/vmmlib/aabb.hpp
  include/vmmlib/blas_daxpy.hpp
  include/vmmlib/blas_dgemm.hpp
  include/vmmlib/blas_dot.hpp
  include/vmmlib/blas_includes.hpp
  include/vmmlib/blas_types.hpp
  include/vmmlib/cp3_tensor.hpp
  include/vmmlib/cublas_dgemm.cu
  include/vmmlib/cublas_includes.hpp
  include/vmmlib/cublas_types.hpp
  include/vmmlib/enable_if.hpp
  include/vmmlib/exception.hpp
  include/vmmlib/frustum.hpp
  include/vmmlib/frustum_culler.hpp
  include/vmmlib/jacobi_solver.hpp
  include/vmmlib/lapack.hpp
  include/vmmlib/lapack/detail/clapack.h
  include/vmmlib/lapack/detail/f2c.h
  include/vmmlib/lapack_gaussian_elimination.hpp
  include/vmmlib/lapack_includes.hpp
  include/vmmlib/lapack_linear_least_squares.hpp
  include/vmmlib/lapack_svd.hpp
  include/vmmlib/lapack_sym_eigs.hpp
  include/vmmlib/lapack_types.hpp
  include/vmmlib/linear_least_squares.hpp
  include/vmmlib/math.hpp
  include/vmmlib/matrix.hpp
  include/vmmlib/matrix_functors.hpp
  include/vmmlib/matrix_pseudoinverse.hpp
  include/vmmlib/matrix_traits.hpp
  include/vmmlib/qr_decomposition.hpp
  include/vmmlib/qtucker3_tensor.hpp
  include/vmmlib/quaternion.hpp
  include/vmmlib/svd.hpp
  include/vmmlib/t3_converter.hpp
  include/vmmlib/t3_cublas_hooi.hpp
  include/vmmlib/t3_cublas_hosvd.hpp
  include/vmmlib/t3_cublas_ttm.hpp
  include/vmmlib/t3_hooi.hpp
  include/vmmlib/t3_hopm.hpp
  include/vmmlib/t3_hosvd.hpp
  include/vmmlib/t3_ihopm.hpp
  include/vmmlib/t3_ttm.hpp
  include/vmmlib/tensor3.hpp
  include/vmmlib/tensor3_iterator.hpp
  include/vmmlib/tucker3_exporter.hpp
  include/vmmlib/tucker3_importer.hpp
  include/vmmlib/tucker3_tensor.hpp
  include/vmmlib/validator.hpp
  include/vmmlib/vector.hpp
  include/vmmlib/vector_traits.hpp
  include/vmmlib/visibility.hpp
  include/vmmlib/vmmlib.hpp
  include/vmmlib/vmmlib_config.hpp
)

set(SOURCES
  tests/frustum_test.cpp
  tests/jacobi_test.cpp
  tests/matrix_test.cpp
  tests/perf_test.cpp
  tests/performance_test.cpp
  tests/qr_decomposition_test.cpp
  tests/quaternion_test.cpp
  tests/svd_test.cpp
  tests/timer.cpp
  tests/unit_test.cpp
  tests/vector_test.cpp
  tests/vmmlib_unit_tests_main.cpp
# tests/matrix_compare_perf_test.cpp
# tests/stringtests.cpp
# tests/vmmlib_lapack_main.cpp
# tests/vmmlib_performance_tests_main.cpp
)

if(LAPACK_FOUND)
  add_definitions(-DVMMLIB_USE_LAPACK)
  list(APPEND SOURCES
    tests/lapack_gaussian_elimination_test.cpp
    tests/lapack_linear_least_squares_test.cpp
    tests/lapack_svd_test.cpp
    tests/lapack_sym_eigs_test.cpp
    tests/svd_lapack_vs_old.cpp
  )
endif(LAPACK_FOUND)

if(BLAS_FOUND)
  add_definitions(-DVMMLIB_USE_BLAS)
  list(APPEND SOURCES
    tests/cp3_tensor_test.cpp
    tests/matrix_pseudoinverse_test.cpp
    tests/tensor3_iterator_test.cpp
    tests/tensor3_test.cpp
    tests/tucker3_tensor_test.cpp
  )
endif()

if(NOT MSVC)
  add_executable(vmmlib_test ${HEADERS} ${SOURCES})
  if(LAPACK_FOUND)
    target_link_libraries(vmmlib_test ${LAPACK_LIBRARIES})
  endif()
  add_test(vmmlib_test vmmlib_test)
endif()

install(FILES ${HEADERS} DESTINATION include/vmmlib)
add_custom_target(package COMMENT "Packaging not done yet")

{'fraction_non_alphanumeric': 0.08944543828264759, 'fraction_numerical': 0.007430851795789184, 'mean_word_length': 5.082008368200837, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2522736', 'n_tokens_mistral': 3119, 'n_tokens_neox': 3033, 'n_words': 286}