2021-08-10 15:59:01 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-10-19 09:28:51 +08:00
|
|
|
@@ -164,7 +164,7 @@
|
2021-08-10 15:59:01 +08:00
|
|
|
|
|
|
|
## Provide some pkg-config integration
|
|
|
|
set(PKGCONFIG_INSTALL_DIR
|
|
|
|
- "${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig"
|
|
|
|
+ "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
|
|
|
|
CACHE PATH "Path where catch2.pc is installed"
|
|
|
|
)
|
|
|
|
configure_file(
|
2022-05-18 17:27:58 +08:00
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
|
|
--- a/src/CMakeLists.txt
|
|
|
|
+++ b/src/CMakeLists.txt
|
2022-11-29 03:14:07 +08:00
|
|
|
@@ -401,16 +401,28 @@
|
2022-05-18 17:27:58 +08:00
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
Catch2
|
|
|
|
- Catch2WithMain
|
|
|
|
EXPORT
|
|
|
|
Catch2Targets
|
2022-11-29 03:14:07 +08:00
|
|
|
LIBRARY DESTINATION
|
2022-05-18 17:27:58 +08:00
|
|
|
${CMAKE_INSTALL_LIBDIR}
|
2022-10-19 09:28:51 +08:00
|
|
|
ARCHIVE DESTINATION
|
|
|
|
${CMAKE_INSTALL_LIBDIR}
|
|
|
|
RUNTIME DESTINATION
|
|
|
|
${CMAKE_INSTALL_BINDIR}
|
2022-05-18 17:27:58 +08:00
|
|
|
)
|
|
|
|
+
|
|
|
|
+ install(
|
|
|
|
+ TARGETS
|
|
|
|
+ Catch2WithMain
|
|
|
|
+ EXPORT
|
|
|
|
+ Catch2Targets
|
2022-09-03 01:41:49 +08:00
|
|
|
+ LIBRARY DESTINATION
|
2022-05-18 17:27:58 +08:00
|
|
|
+ ${CMAKE_INSTALL_LIBDIR}/manual-link
|
2022-09-03 01:41:49 +08:00
|
|
|
+ ARCHIVE DESTINATION
|
|
|
|
+ ${CMAKE_INSTALL_LIBDIR}/manual-link
|
|
|
|
+ RUNTIME DESTINATION
|
|
|
|
+ ${CMAKE_INSTALL_BINDIR}
|
2022-05-18 17:27:58 +08:00
|
|
|
+ )
|
|
|
|
|
|
|
|
|
|
|
|
install(
|