[CMake] CPack and ExternalProject_Add
Anil Gunturu
anil.gunturu at skyfab.com
Tue Jun 18 22:58:42 EDT 2013
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).
As an example I am using the following command to add the externalproject:
# add an external project target for ${PKG_NAME}-${VERSION}
externalproject_add(
${PKG_NAME}-${VERSION}
DEPENDS "${PKG_DEPENDS}"
DOWNLOAD_COMMAND ""
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/${PKG_NAME}-${VERSION}
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${PKG_NAME}-${VERSION}
CONFIGURE_COMMAND
${CMAKE_CURRENT_SOURCE_DIR}/configure.sh
${PKG_INSTALL_PREFIX}
${CMAKE_CURRENT_SOURCE_DIR}/${PKG_NAME}-${VERSION}
${PKG_CONFIG_PATH}
${LDPATH}
${DEBUG_FLAGS}
BUILD_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.sh ${PYG_PKG_CONFIG_PATH}
${LDPATH}
)
Thanks in advance for help.
Cheers,
-Anil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130618/72c21c5c/attachment.htm>
More information about the CMake
mailing list