File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -379,3 +379,30 @@ install(
379379 FILES ${HEADERS}
380380 DESTINATION "include/libmongoc-${MONGOC_API_VERSION} "
381381)
382+
383+ # Define pkg-config files
384+ set (VERSION "${MONGOC_VERSION} " )
385+ set (prefix "${CMAKE_INSTALL_PREFIX} " )
386+ set (libdir "\$ {prefix}/lib" )
387+ configure_file (
388+ ${CMAKE_CURRENT_SOURCE_DIR} /src/libmongoc-1.0.pc.in
389+ ${CMAKE_CURRENT_BINARY_DIR} /libmongoc-1.0.pc
390+ @ONLY)
391+ configure_file (
392+ ${CMAKE_CURRENT_SOURCE_DIR} /src/libmongoc-priv.pc.in
393+ ${CMAKE_CURRENT_BINARY_DIR} /libmongoc-priv.pc
394+ @ONLY)
395+ install (
396+ FILES ${CMAKE_CURRENT_BINARY_DIR} /libmongoc-1.0.pc ${CMAKE_CURRENT_BINARY_DIR} /libmongoc-priv.pc
397+ DESTINATION lib/pkgconfig
398+ )
399+ if (MONGOC_ENABLE_SSL)
400+ configure_file (
401+ ${CMAKE_CURRENT_SOURCE_DIR} /src/libmongoc-ssl-1.0.pc.in
402+ ${CMAKE_CURRENT_BINARY_DIR} /libmongoc-ssl-1.0.pc
403+ @ONLY)
404+ install (
405+ FILES ${CMAKE_CURRENT_BINARY_DIR} /libmongoc-ssl-1.0.pc
406+ DESTINATION lib/pkgconfig
407+ )
408+ endif ()
You can’t perform that action at this time.
0 commit comments