summaryrefslogtreecommitdiff
path: root/externals/eigen3.cmake
blob: bc8bf59fd34e68cd398ce74a42cd5d7a2e7734d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#
# Eigen 3
#
set(EIGEN_DIR "${CMAKE_CURRENT_SOURCE_DIR}/tensorflow/tensorflow/contrib/lite/downloads/eigen")
file(GLOB_RECURSE EIGEN3_HDRS "${EIGEN_DIR}/*.h")

# NOTE From 3.x, CMake supports INTERFACE library feature. Unfortunately,
#      CMake 2.8.12 (which Ubuntu 14.04 provides) does not support this
#      library feature.
add_library(eigen3 STATIC ${EIGEN3_HDRS})
set_target_properties(eigen3 PROPERTIES LINKER_LANGUAGE CXX)
target_include_directories(eigen3 PUBLIC "${EIGEN_DIR}")