mirror of
https://github.com/catchorg/Catch2.git
synced 2025-07-12 12:05:32 +02:00

This enables us to generate pkg-config with proper paths if the installation prefix is decided at install time, e.g. with ``` cmake --install build-dir --prefix /path/to/somewhere ``` It also means that we can use CMake's generator expression to get the _real_ final name of the libraries, e.g. including debug postfix. Closes #2979
11 lines
341 B
PkgConfig
11 lines
341 B
PkgConfig
prefix=@CMAKE_INSTALL_PREFIX@
|
|
libdir=${prefix}/@lib_dir@
|
|
pkg_version=@Catch2_VERSION@
|
|
|
|
Name: Catch2 with main function
|
|
Description: A modern, C++-native test framework for C++14 and above (links in default main)
|
|
URL: https://github.com/catchorg/Catch2
|
|
Version: ${pkg_version}
|
|
Requires: catch2 = ${pkg_version}
|
|
Libs: -L${libdir} -l@lib_name@
|