Commit a5907daf authored by Peter Wu's avatar Peter Wu Committed by johan

CMake: install pkg-config files for parity with autotools

parent 697bf665
......@@ -92,6 +92,19 @@ configure_file(Bcg729Config.cmake.in
@ONLY
)
set(prefix "${CMAKE_INSTALL_PREFIX}")
set(exec_prefix "\${prefix}")
set(includedir "\${prefix}/include")
set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
configure_file(libbcg729.pc.in
"${CMAKE_CURRENT_BINARY_DIR}/libbcg729.pc"
@ONLY
)
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/libbcg729.pc"
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)
set(CONFIG_PACKAGE_LOCATION "${CMAKE_INSTALL_DATADIR}/Bcg729/cmake")
install(EXPORT Bcg729Targets
FILE Bcg729Targets.cmake
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment