mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-23 18:20:47 +08:00
with minimal code duplication. There now are only two (2) const_cast remaining in the whole source code. - eigen2 now fully allows copying a row-vector into a column-vector. added a unit-test for that. - split unit tests, improve docs, various improvements.
26 lines
436 B
CMake
26 lines
436 B
CMake
IF(BUILD_TESTS)
|
|
|
|
ENABLE_TESTING()
|
|
FIND_PACKAGE(Qt4 REQUIRED)
|
|
INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
|
|
|
|
SET(test_SRCS
|
|
main.cpp
|
|
basicstuff.cpp
|
|
linearstructure.cpp
|
|
product.cpp
|
|
adjoint.cpp
|
|
submatrices.cpp
|
|
miscmatrices.cpp
|
|
smallvectors.cpp
|
|
map.cpp
|
|
)
|
|
QT4_AUTOMOC(${test_SRCS})
|
|
|
|
ADD_EXECUTABLE(test ${test_SRCS})
|
|
TARGET_LINK_LIBRARIES(test ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY})
|
|
|
|
ADD_TEST(Eigen test)
|
|
|
|
ENDIF(BUILD_TESTS)
|