Установка файла для pkgconfig

This commit is contained in:
Andrei Astafev 2019-03-07 22:15:07 +03:00
parent 572c4b9d0f
commit 91ff0dd7c7

View File

@ -36,7 +36,7 @@ function(add_common_library)
install(TARGETS ${LIBNAME}_static ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(TARGETS ${LIBNAME}_static ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif() endif()
configure_file(${CMLIB_MODULE_DIR}/pc/lib.pc.in configure_file(${CMLIB_MODULE_DIR}/pc/lib.pc.in ${CMAKE_BINARY_DIR}/${LIBNAME}.pc)
${CMAKE_BINARY_DIR}/${LIBNAME}.pc) install(FILES ${CMAKE_BINARY_DIR}/${LIBNAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endfunction() endfunction()