<commit_before>#
# src/cmake/dependencies.cmake:
#
#
# Dependencies for liboskar:
#------------------------------------------------------------------------------
# [required]
#   CUDA (>= 4.0)
#
# [optional]
#   CppUnit
#   Qt4
#   Qwt5-qt4
#
# Dependencies for liboskar_ms:
#------------------------------------------------------------------------------
#  casacore
#  CppUnit
#
# Dependencies for liboskar_imaging:
#------------------------------------------------------------------------------
#   FFTW
#   CFitsio
#   CppUnit
#
# Dependencies for liboskar_widgets:
#------------------------------------------------------------------------------
#   Qt4
#   Qwt5
#   CppUnit
#   CBLAS (either ATLAS or MKL)
#   LAPACK (either ATLAS or MKL)
#

# ==== OS specific path settings.
if (WIN32)
    # qwt5
    set(QWT_INCLUDES     ${CMAKE_SOURCE_DIR}/../include/qwt-5.2.2/)
    set(QWT_LIBRARY_DIR  ${CMAKE_SOURCE_DIR}/../lib/qwt-5.2.2/)

    # cppunit
    set(CPPUNIT_INCLUDES ${CMAKE_SOURCE_DIR}/../include/cppunit-1.12.1/)
    set(CPPUNIT_LIB_DIR  ${CMAKE_SOURCE_DIR}/../lib/cppunit-1.12.1/)
endif ()

# ==== Find dependencies.
find_package(CUDA 4.0 QUIET)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    find_package(Qt4 4.5.0 COMPONENTS QtCore QtGui QtXml QtOpenGL QtTest QUIET)
    find_package(Qwt5 QUIET)
endif ()
find_package(OpenMP QUIET)
find_package(CppUnit QUIET)
find_package(FFTW3 QUIET)
find_package(CasaCore QUIET)
find_package(CFitsio QUIET)
find_package(Matlab QUIET)


# ==== Work out which libraries to build.
if (NOT CUDA_FOUND)
    message("*****************************************************************")
    message("** WARNING: CUDA not found: "<commit_msg>disabled qt dependency on osx<commit_after>#
# src/cmake/dependencies.cmake:
#
#
# Dependencies for liboskar:
#------------------------------------------------------------------------------
# [required]
#   CUDA (>= 4.0)
#
# [optional]
#   CppUnit
#   Qt4
#   Qwt5-qt4
#
# Dependencies for liboskar_ms:
#------------------------------------------------------------------------------
#  casacore
#  CppUnit
#
# Dependencies for liboskar_imaging:
#------------------------------------------------------------------------------
#   FFTW
#   CFitsio
#   CppUnit
#
# Dependencies for liboskar_widgets:
#------------------------------------------------------------------------------
#   Qt4
#   Qwt5
#   CppUnit
#   CBLAS (either ATLAS or MKL)
#   LAPACK (either ATLAS or MKL)
#

# ==== OS specific path settings.
if (WIN32)
    # qwt5
    set(QWT_INCLUDES     ${CMAKE_SOURCE_DIR}/../include/qwt-5.2.2/)
    set(QWT_LIBRARY_DIR  ${CMAKE_SOURCE_DIR}/../lib/qwt-5.2.2/)

    # cppunit
    set(CPPUNIT_INCLUDES ${CMAKE_SOURCE_DIR}/../include/cppunit-1.12.1/)
    set(CPPUNIT_LIB_DIR  ${CMAKE_SOURCE_DIR}/../lib/cppunit-1.12.1/)
endif ()

# ==== Find dependencies.
find_package(CUDA 4.0 QUIET)
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    find_package(Qt4 4.5.0 COMPONENTS QtCore QtGui QtXml QtOpenGL QtTest QUIET)
    find_package(Qwt5 QUIET)
endif ()
find_package(OpenMP QUIET)
find_package(CppUnit QUIET)
find_package(FFTW3 QUIET)
find_package(CasaCore QUIET)
find_package(CFitsio QUIET)
find_package(Matlab QUIET)


# ==== Work out which libraries to build.
if (NOT CUDA_FOUND)
    message("*****************************************************************")
    message("** WARNING: CUDA not found: "
{'fraction_non_alphanumeric': 0.32998225901833234, 'fraction_numerical': 0.018923713778829097, 'mean_word_length': 1.886518771331058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3185377', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1124, 'n_words': 213}