Skip to content

Commit 5e3b378

Browse files
authored
Merge pull request #139 from edanaher/pkgconfig-with-cmake
Build pkgconfig file with CMake, not just with autoconf. Fixes #89
2 parents 478b654 + 40f90dc commit 5e3b378

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,11 @@ install(FILES ${headers_} DESTINATION ${UTPP_INSTALL_DESTINATION})
100100
install(FILES ${platformHeaders_} DESTINATION ${UTPP_INSTALL_DESTINATION}/${platformDir_})
101101
install(FILES cmake/UnitTest++Config.cmake DESTINATION "${config_install_dir_}")
102102
install(EXPORT "${targets_export_name_}" DESTINATION "${config_install_dir_}")
103+
104+
set(prefix ${CMAKE_INSTALL_PREFIX})
105+
set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
106+
set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
107+
set(includedir ${CMAKE_INSTALL_PREFIX}/include/UnitTest++)
108+
configure_file("UnitTest++.pc.in" "UnitTest++.pc" @ONLY)
109+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/UnitTest++.pc"
110+
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy