Skip to content

Commit

Permalink
Merge pull request #2628 from QiJune/feature/add_eigen_cmake
Browse files Browse the repository at this point in the history
add eigen as cmake external project
  • Loading branch information
wangkuiyi committed Jun 27, 2017
2 parents 4db23bb + c5d9ca8 commit 633082a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ include(external/openblas) # download, build, install openblas
include(external/swig) # download, build, install swig
include(external/warpctc) # download, build, install warpctc
include(external/any) # download libn::any
include(external/eigen) # download eigen3

include(generic) # simplify cmake module
include(package) # set paddle packages
Expand Down
20 changes: 20 additions & 0 deletions cmake/external/eigen.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
INCLUDE(ExternalProject)

SET(EIGEN_SOURCE_DIR ${THIRD_PARTY_PATH}/eigen3)

INCLUDE_DIRECTORIES(${EIGEN_SOURCE_DIR}/src/eigen3)

ExternalProject_Add(
eigen3
${EXTERNAL_PROJECT_LOG_ARGS}
URL "https://bitbucket.org/eigen/eigen/get/3.3.4.tar.gz"
URL_MD5 "1a47e78efe365a97de0c022d127607c3"
PREFIX ${EIGEN_SOURCE_DIR}
UPDATE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
TEST_COMMAND ""
)

LIST(APPEND external_project_dependencies eigen3)

0 comments on commit 633082a

Please sign in to comment.