2007-09-05 18:42:15 +08:00
|
|
|
IF(BUILD_TESTS)
|
|
|
|
|
|
|
|
ENABLE_TESTING()
|
|
|
|
FIND_PACKAGE(Qt4 REQUIRED)
|
|
|
|
INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
|
|
|
|
|
|
|
|
SET(test_SRCS
|
2008-02-29 22:35:14 +08:00
|
|
|
cwiseop.cpp
|
2007-09-05 18:42:15 +08:00
|
|
|
main.cpp
|
2007-10-14 00:56:24 +08:00
|
|
|
basicstuff.cpp
|
2007-12-26 01:20:58 +08:00
|
|
|
linearstructure.cpp
|
|
|
|
product.cpp
|
2007-11-28 23:34:40 +08:00
|
|
|
adjoint.cpp
|
2007-12-11 18:07:18 +08:00
|
|
|
submatrices.cpp
|
2007-12-16 02:16:30 +08:00
|
|
|
miscmatrices.cpp
|
2007-12-18 04:51:40 +08:00
|
|
|
smallvectors.cpp
|
2007-12-26 01:20:58 +08:00
|
|
|
map.cpp
|
2007-09-05 18:42:15 +08:00
|
|
|
)
|
|
|
|
QT4_AUTOMOC(${test_SRCS})
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(test ${test_SRCS})
|
|
|
|
TARGET_LINK_LIBRARIES(test ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY})
|
|
|
|
|
2007-11-26 06:05:49 +08:00
|
|
|
ADD_TEST(Eigen test)
|
2007-09-05 18:42:15 +08:00
|
|
|
|
|
|
|
ENDIF(BUILD_TESTS)
|