I&#39;ve started a Qt project with CMake and until now is very successfull but I&#39;m wondering how to package my program for use with debian with the correct dependencies<br><br>In the main CMakeLists.txt I have:<br><br>
        set (CPACK_GENERATOR &quot;DEB&quot;)<br>        set (${VERSION} CPACK_DEBIAN_PACKAGE_VERSION)<br>        set (CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})<br>        set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS TRUE)<br>
        set (CPACK_PACKAGE_FILE_NAME &quot;${CMAKE_PROJECT_NAME}_${FOOBARVERSION}_${LICENSE_TYPE}_${CPACK_DEBIAN_ARCHITECTURE}&quot;)<br>        SET(CPACK_PACKAGE_EXECUTABLES &quot;FOOBAR&quot; &quot;FOOBAR (v${FOOBAR_MAJOR}.${FOOBAR_MINOR}.${FOOBAR_PATCH})&quot;)<br>
<br>and in the CMakeLists.txt related to the executable itself<br><br>if (UNIX AND NOT APPLE)<br>add_executable(Foobar ${ALL_THE_NEEDED_FILES} )<br>target_link_libraries(Foobar ${QT_LIBRARIES} Common GL GLU glut)<br><br>INSTALL(TARGETS Foobar DESTINATION Foobar)<br>
endif (UNIX AND NOT APPLE)<br><br>The debian package is created correctly but once in a clean test virtual machine, I try to run it, the dpkg installer complains saying that <b>freeglut3</b> dependencies are not satisfiable<b>.</b><br>
<b>Dependency is not satisfiable: freeglut3</b><br><br>This is what I get after a dpkg --info<br><br>Package: FooBar<br> Version: 0.1.1<br> Section: devel<br> Priority: optional<br> Architecture: i386<br> Depends: freeglut3, libc6 (&gt;= 2.3.6-6~), libc6 (&gt;= 2.4), libgcc1 (&gt;= 1:4.1.1), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, libgomp1 (&gt;= 4.2.1), libqt4-opengl (&gt;= 4:4.5.3), libqtcore4 (&gt;= 4:4.6.1), libqtgui4 (&gt;= 4:4.5.3), libstdc++6 (&gt;= 4.4.0)<br>
<br><br>I&#39;ve found somewhere the cpack_add_component command, is this somewhat related to the missing dependencies?<br><br>Some hints?<br>