8000 Build pkgconfig file with CMake, not just with autoconf. · unittest-cpp/unittest-cpp@40f90dc · GitHub
[go: up one dir, main page]

Skip to content

Commit 40f90dc

Browse files
committed
Build pkgconfig file with CMake, not just with autoconf.
1 parent d8e27e1 commit 40f90dc

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)
0