mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 12:46:00 +08:00
Added pkgconfig support
This commit is contained in:
parent
65181df1f9
commit
066acca179
@ -27,6 +27,9 @@ if(NOT WIN32)
|
|||||||
option(EIGEN_BUILD_LIB "Build the binary shared library" OFF)
|
option(EIGEN_BUILD_LIB "Build the binary shared library" OFF)
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
option(EIGEN_BUILD_BTL "Build benchmark suite" OFF)
|
option(EIGEN_BUILD_BTL "Build benchmark suite" OFF)
|
||||||
|
if(NOT WIN32)
|
||||||
|
option(EIGEN_BUILD_PKGCONFIG "Build pkg-config .pc file for Eigen" ON)
|
||||||
|
endif(NOT WIN32)
|
||||||
|
|
||||||
if(EIGEN_BUILD_LIB)
|
if(EIGEN_BUILD_LIB)
|
||||||
option(EIGEN_TEST_LIB "Build the unit tests using the library (disable -pedantic)" OFF)
|
option(EIGEN_TEST_LIB "Build the unit tests using the library (disable -pedantic)" OFF)
|
||||||
@ -98,6 +101,13 @@ set(INCLUDE_INSTALL_DIR
|
|||||||
"The directory where we install the header files"
|
"The directory where we install the header files"
|
||||||
FORCE)
|
FORCE)
|
||||||
|
|
||||||
|
if(EIGEN_BUILD_PKGCONFIG)
|
||||||
|
configure_file(eigen2.pc.in eigen2.pc)
|
||||||
|
install(FILES eigen2.pc
|
||||||
|
DESTINATION lib/pkgconfig
|
||||||
|
)
|
||||||
|
endif(EIGEN_BUILD_PKGCONFIG)
|
||||||
|
|
||||||
add_subdirectory(Eigen)
|
add_subdirectory(Eigen)
|
||||||
|
|
||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
|
7
eigen2.pc.in
Normal file
7
eigen2.pc.in
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
Name: Eigen2
|
||||||
|
Description: A C++ template library for linear algebra: vectors, matrices, and related algorithms
|
||||||
|
Requires:
|
||||||
|
Version: ${EIGEN_VERSION_NUMBER}
|
||||||
|
Libs:
|
||||||
|
Cflags: -I${INCLUDE_INSTALL_DIR}
|
Loading…
x
Reference in New Issue
Block a user