if(BUILD_TESTS)

ENABLE_TESTING()

find_package(Qt4 REQUIRED)

include_directories( ${QT_INCLUDE_DIR} )

SET(tests_SRCS
    main.cpp
    comparisons.cpp
    basicstuff.cpp
    rowcolumnadjoint.cpp
    euclidean.cpp
    ludecomposition.cpp
    implicitlu.cpp
    solver.cpp
    regression.cpp
    specialmatrices.cpp
    projective.cpp
)

qt4_automoc(${tests_SRCS})

add_executable(tests ${tests_SRCS})

target_link_libraries(tests ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY})

ADD_TEST(Eigen tests)

endif(BUILD_TESTS)
