-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Eigen header-only library #26
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Source: eigen | ||
Version: 3.2.9 | ||
Description: C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
include(vcpkg_common_functions) | ||
vcpkg_download_distfile(ARCHIVE | ||
URL "http://bitbucket.org/eigen/eigen/get/3.2.9.tar.bz2" | ||
FILENAME "eigen-3.2.9.tar.bz2" | ||
MD5 de11bfbfe2fd2dc4b32e8f416f58ee98 | ||
) | ||
vcpkg_extract_source_archive(${ARCHIVE}) | ||
|
||
# Put the licence file where vcpkg expects it | ||
file(RENAME ${CURRENT_BUILDTREES_DIR}/src/eigen-eigen-dc6cfdf9bcec ${CURRENT_BUILDTREES_DIR}/src/eigen) | ||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/eigen/COPYING.README DESTINATION ${CURRENT_PACKAGES_DIR}/share/eigen/COPYING.README) | ||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/eigen/COPYING.README ${CURRENT_PACKAGES_DIR}/share/eigen/copyright) | ||
|
||
message(${CURRENT_BUILDTREES_DIR}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Scripts should avoid printing extra information unless it's unique to this particular package (we can fix this during the merge). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems it's fixed by the last commit (83f5e57). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, awesome, thanks 👍 |
||
|
||
# Copy the eigen header files | ||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/eigen/Eigen/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/Eigen/) | ||
vcpkg_copy_pdbs() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quoting for the
EXAMPLES.md
file :Eigen is known as:
FindEigen3.cmake
andEigen3Config.cmake
distributed by the project).libeigen3-dev
in Debian-based systems.eigen3
in FreeBSD [1]eigen3
in MacPorts [2]eigen
in homebrew [3]eigen3
in fedora [4]eigen
in Gentoo [5]eigen3
in MINGW [6]Given that (except for homebrew and gentoo's portage) the Eigen package is always called
eigen3
, it could make sense to call iteigen3
also invcpkg
?[1] : https://svnweb.freebsd.org/ports/head/math/eigen3/
[2] : https://trac.macports.org/browser/trunk/dports/math/eigen3/Portfile
[3] : http://brewformulas.org/Eigen
[4] : http://rpms.famillecollet.com/rpmphp/zoom.php?rpm=eigen3
[5] : https://packages.gentoo.org/packages/dev-cpp/eigen
[6] : https://github.com/msys2/MINGW-packages/tree/44faea9dde7642988ed6e837d6a39d8effaea3f4/mingw-w64-eigen3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this should definitely be renamed to eigen3! Great detective work.