mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user