<div dir="ltr">Is there a way to use CPack to create RPMs for targets added using ExternalProject_Add? Specifically these targets are not CMake targets and use autotools to build (./configure && make).<div><br></div>
<div style>As an example I am using the following command to add the externalproject:</div><div style><br></div><div><div># add an external project target for ${PKG_NAME}-${VERSION}</div><div>externalproject_add(</div><div>
${PKG_NAME}-${VERSION}</div><div> DEPENDS "${PKG_DEPENDS}"</div><div> DOWNLOAD_COMMAND ""</div><div> PREFIX ${CMAKE_CURRENT_BINARY_DIR}/${PKG_NAME}-${VERSION}</div><div> SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${PKG_NAME}-${VERSION}</div>
<div> CONFIGURE_COMMAND </div><div> ${CMAKE_CURRENT_SOURCE_DIR}/configure.sh </div><div> ${PKG_INSTALL_PREFIX} </div><div> ${CMAKE_CURRENT_SOURCE_DIR}/${PKG_NAME}-${VERSION} </div><div> ${PKG_CONFIG_PATH}</div><div> ${LDPATH}</div>
<div> ${DEBUG_FLAGS}</div><div> BUILD_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.sh ${PYG_PKG_CONFIG_PATH} ${LDPATH}</div><div>)</div></div><div><br></div><div><div>Thanks in advance for help.<br></div><div style><br></div>
<div style>Cheers,</div><div style><br></div><div style>-Anil</div></div></div>