[cmake] cleaning_configure_file

add a wrapper to automatically add generated files to clean target
This commit is contained in:
akallabeth
2024-10-02 22:37:35 +02:00
parent c86a78bef7
commit cfc37caeb8
23 changed files with 67 additions and 44 deletions

View File

@@ -103,7 +103,7 @@ add_subdirectory(makecert-cli)
add_subdirectory(hash-cli)
include(pkg-config-install-prefix)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/winpr-tools.pc.in ${CMAKE_CURRENT_BINARY_DIR}/winpr-tools${WINPR_TOOLS_VERSION_MAJOR}.pc @ONLY)
cleaning_configure_file(${CMAKE_CURRENT_SOURCE_DIR}/winpr-tools.pc.in ${CMAKE_CURRENT_BINARY_DIR}/winpr-tools${WINPR_TOOLS_VERSION_MAJOR}.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/winpr-tools${WINPR_TOOLS_VERSION_MAJOR}.pc DESTINATION ${PKG_CONFIG_PC_INSTALL_DIR})
export(PACKAGE ${MODULE_NAME})