added an *optional* Eigen2 dynamic library.

it allows the possiblity to save some compilation time by linking to it
*and* defining the token EIGEN_EXTERN_INSTANCIATIONS
This commit is contained in:
Gael Guennebaud
2008-05-31 23:21:49 +00:00
parent fcf4457b78
commit 64169389ed
7 changed files with 78 additions and 5 deletions

View File

@@ -53,6 +53,8 @@ MACRO(EI_ADD_TEST testname)
EI_ADD_TARGET_PROPERTY(${targetname} COMPILE_FLAGS "-DEIGEN_TEST_FUNC=${testname}")
target_link_libraries(${targetname} Eigen2)
IF(WIN32)
ADD_TEST(${testname} "${targetname}")
ELSE(WIN32)
@@ -64,6 +66,8 @@ ENDMACRO(EI_ADD_TEST)
ENABLE_TESTING()
ADD_DEFINITIONS("-DEIGEN_EXTERN_INSTANCIATION=1")
EI_ADD_TEST(basicstuff)
EI_ADD_TEST(linearstructure)
EI_ADD_TEST(cwiseop)