mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
6f71ef8277
in the benchmark suite
25 lines
738 B
CMake
25 lines
738 B
CMake
|
|
find_package(Eigen2)
|
|
if (EIGEN2_FOUND)
|
|
|
|
include_directories(${EIGEN2_INCLUDE_DIR})
|
|
btl_add_bench(btl_eigen2 main.cpp)
|
|
|
|
IF(NOT BTL_NOVEC)
|
|
btl_add_bench(btl_eigen2_novec main.cpp)
|
|
if(BUILD_btl_eigen2_novec)
|
|
set_target_properties(btl_eigen2_novec PROPERTIES COMPILE_FLAGS "-DEIGEN_DONT_VECTORIZE")
|
|
endif(BUILD_btl_eigen2_novec)
|
|
ENDIF(NOT BTL_NOVEC)
|
|
|
|
btl_add_bench(btl_tiny_eigen2 btl_tiny_eigen2.cpp OFF)
|
|
|
|
IF(NOT BTL_NOVEC)
|
|
btl_add_bench(btl_tiny_eigen2_novec btl_tiny_eigen2.cpp OFF)
|
|
if(BUILD_btl_tiny_eigen2_novec)
|
|
set_target_properties(btl_tiny_eigen2_novec PROPERTIES COMPILE_FLAGS "-DEIGEN_DONT_VECTORIZE")
|
|
endif(BUILD_btl_tiny_eigen2_novec)
|
|
ENDIF(NOT BTL_NOVEC)
|
|
|
|
endif (EIGEN2_FOUND)
|