[CMake] Simple CPack example is needed...
Eric Noulard
eric.noulard at gmail.com
Sun Oct 19 07:42:51 EDT 2008
2008/10/18 Dick Munroe <munroe at csworks.com>:
> I've gotten to the point where I need to build an installer and want to use
> CPack. The available documentation is pretty impenetrable and I can't find
> any simple examples on the web. I've found a bug in the CPack.make file
> shipped with CMake 2.6.2
I do use CPack/CMake 2.6.2 without trouble for
ZIP
TGZ
RPM
DEB
cpack generator so I think...
> (in the section of the file following the comment:
> Generate source file, CPACK_INSTALL_CMAKE_PROJECTS is clobbered by
> CPACK_SOURCE_INSTALL_CMAKE_PROJECTS which winds up generating the following
> error when I try to run make package:
You may have misunderstood the purpose of those line.
CPack.cmake is generated 2 files:
CPackConfig.cmake for binary package
CPackSourceConfig.cmake for source package
the
SET(CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_SOURCE_INSTALL_CMAKE_PROJECTS}")
is done before generating "CPackSourceConfig.cmake" but
after "CPackConfig.cmake" has been produced.
look for configure_file commands.
[...]
>
> So I'm got curious about what the various bits of the
> CPACK_INSTALL_CMAKE_PROJECTS are. I've started with:
>
> set(
> CPACK_INSTALL_CMAKE_PROJECTS
> "bin/ESPlanner;ESPlanner-Web;WEB;/tmp/ESPlanner-install")
>
> which got the error above, so the first argument has to be something like
> the root of the build directory. So, I changed the directory to
> ${CMAKE_HOME_DIRECTORY} and I get kits built, but I still think there is a
> bug in CPack.make.
look at:
http://www.cmake.org/Wiki/CMake:CPackConfiguration
More information about the CMake
mailing list