This commit extracts Eigen-related commands from external/CMakeLists.txt
to simplify external/CMakeLists.txt.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
set(TENSORFLOW_BASE ${CMAKE_CURRENT_SOURCE_DIR}/tensorflow)
set(TENSORFLOW_LITE_BASE ${TENSORFLOW_BASE}/tensorflow/contrib/lite)
-# Eigen 3
-file(GLOB_RECURSE EIGEN3_HDRS "${CMAKE_CURRENT_SOURCE_DIR}/eigen/*.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 "${CMAKE_CURRENT_SOURCE_DIR}/eigen")
+include(eigen3.cmake)
#
# Protocol Buffer (>= 3.5.1)
--- /dev/null
+#
+# Eigen 3
+#
+file(GLOB_RECURSE EIGEN3_HDRS "${CMAKE_CURRENT_SOURCE_DIR}/eigen/*.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 "${CMAKE_CURRENT_SOURCE_DIR}/eigen")