mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
e445f5085a
of just checking compilation. Fix the many issues discovered by these unit-tests, by the way fixing a performance bug.
19 lines
318 B
CMake
19 lines
318 B
CMake
IF(BUILD_TESTS)
|
|
|
|
ENABLE_TESTING()
|
|
FIND_PACKAGE(Qt4 REQUIRED)
|
|
INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
|
|
|
|
SET(test_SRCS
|
|
main.cpp
|
|
basicstuff.cpp
|
|
)
|
|
QT4_AUTOMOC(${test_SRCS})
|
|
|
|
ADD_EXECUTABLE(test ${test_SRCS})
|
|
TARGET_LINK_LIBRARIES(test ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY})
|
|
|
|
ADD_TEST(gen test)
|
|
|
|
ENDIF(BUILD_TESTS)
|