Hello!<br>I've started using CMake not long ago, I'm not very familiar with it yet. I need to generate a package with CMake, but when I try to do it, I get empty packages. This is my CMakeLists.txt file (just a simple "hello, world" application of a single .cpp file):<br>
<br>==============================<br>cmake_minimum_required( VERSION 2.6 )<br>project( cmakehello01 )<br><br>set( hello_SRCS hello.cpp )<br>
add_executable( cmakehello01 ${hello_SRCS} )<br><br>install(TARGETS cmakehello01 DESTINATION /usr/share/bin)<br><br>INCLUDE(CPack)<br>==============================<br><br>I run:<br>mkdir build<br>cd build<br>cmake ..<br>
make<br>sudo make install<br>sudo make package<br><br>and
after that I always get three empty packages (.sh, .tar.gz and .Z).
What am I doing wrong? I've spent a couple of hours to figure it out,
and still have no idea. I've tried to set various CPACK_xxx variables (<a href="http://www.cmake.org/Wiki/CMake:Packaging_With_CPack" target="_blank">http://www.cmake.org/Wiki/CMake:Packaging_With_CPack</a>, <a href="http://www.cmake.org/Wiki/CMake:CPackConfiguration" target="_blank">http://www.cmake.org/Wiki/CMake:CPackConfiguration</a>): it seems they have no effect at all. But, afaik, it's not necessary, since CPack script generates reasonable default values for them. I feel like I've missed something obvious...<br>
<br>I'm working on Fedora 11, <br>$ cmake --version<br>cmake version 2.6-patch 4<br><br>Thanks.