mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
21 lines
353 B
CMake
21 lines
353 B
CMake
IF(BUILD_TESTS)
|
|
|
|
ENABLE_TESTING()
|
|
FIND_PACKAGE(Qt4 REQUIRED)
|
|
INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
|
|
|
|
SET(test_SRCS
|
|
main.cpp
|
|
vectorops.cpp
|
|
matrixops.cpp
|
|
matrixmanip.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)
|