1) where is the best place for documentation for cmake/cpack? Is there any free equivalent to the autotools book? the sporatic examples coupled with sparse documentation hasn't made the transition as simple as expected :)<br>
<br>2) sorry for the novice nature of this question, but I'm just not seeing what I'm missing when trying to build a package with cmake/cpack. After running "cmake .", and "cpack" or "make package", I end up with empty packages. The tar.gz and tar.Z archives are empty. I was expecting the same behavior as "make dist" with autotools. Any help with this embarassingly simple question would be appreciated.<br>
<br><br><br>CMakeLists.txt:<br>cmake_minimum_required( VERSION 2.6 )<br>project( hello )<br>set( hello_SRCS hello.cpp )<br>add_executable( hello ${hello_SRCS} )<br>include( CPack )<br><br><br>bash-3.2$ cmake .<br>-- Configuring done<br>
-- Generating done<br>-- Build files have been written to: /home/mlohry/temp/cmake/cxx<br><br>bash-3.2$ cpack<br>CPack: Create package using STGZ<br>CPack: Install projects<br>CPack: - Run preinstall target for: hello<br>
CPack: - Install project: hello<br>CPack: Compress package<br>CPack: Finalize package<br>CPack: Package /home/mlohry/temp/cmake/cxx/<a href="http://hello-0.1.1-Linux.sh">hello-0.1.1-Linux.sh</a> generated.<br>CPack: Create package using TGZ<br>
CPack: Install projects<br>CPack: - Run preinstall target for: hello<br>CPack: - Install project: hello<br>CPack: Compress package<br>CPack: Finalize package<br>CPack: Package /home/mlohry/temp/cmake/cxx/hello-0.1.1-Linux.tar.gz generated.<br>
CPack: Create package using TZ<br>CPack: Install projects<br>CPack: - Run preinstall target for: hello<br>CPack: - Install project: hello<br>CPack: Compress package<br>CPack: Finalize package<br>CPack: Package /home/mlohry/temp/cmake/cxx/hello-0.1.1-Linux.tar.Z generated.<br>
<br>