Rename CMake/pkg-config target Catch2Main to Catch2WithMain

This describes the reality better, as it also links in the rest
of Catch2.

The on-disk name of the static library remains just `Catch2Main`,
as that is what it is -- single main function -- and on-disk artifacts
cannot describe link dependencies.
This commit is contained in:
Martin Hořeňovský
2020-05-03 18:54:38 +02:00
parent 33c58dad41
commit 19ecad6f68
6 changed files with 18 additions and 15 deletions

View File

@@ -166,14 +166,14 @@ if (NOT_SUBPROJECT)
@ONLY
)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/CMake/catch2-main.pc.in
${CMAKE_CURRENT_BINARY_DIR}/catch2-main.pc
${CMAKE_CURRENT_SOURCE_DIR}/CMake/catch2-with-main.pc.in
${CMAKE_CURRENT_BINARY_DIR}/catch2-with-main.pc
@ONLY
)
install(
FILES
"${CMAKE_CURRENT_BINARY_DIR}/catch2.pc"
"${CMAKE_CURRENT_BINARY_DIR}/catch2-main.pc"
"${CMAKE_CURRENT_BINARY_DIR}/catch2-with-main.pc"
DESTINATION
${PKGCONFIG_INSTALL_DIR}
)