diff --git a/CMakeLists.txt b/CMakeLists.txt index 54bd7813904..522fad95d3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,6 +230,9 @@ set(exec_prefix "\${prefix}") set(includedir "\${prefix}/include") set(libdir "\${exec_prefix}/lib") configure_file(quantlib-config.in quantlib-config @ONLY) +configure_file(quantlib.pc.in quantlib.pc @ONLY) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/quantlib-config TYPE BIN) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/quantlib.pc DESTINATION lib/pkgconfig) include(Platform)