Thanks, "make package_source" is what I need.

FH

Le 2014-10-11 20:03, Iosif Neitzke a écrit :
With CPack enabled, "make help" will show all the valid targets.  The
"package_source" target should be one of those targets.

A simple project on Linux built with "make package_source" gives me:


${CMAKE_BINARY_DIR}/_CPack_Packages/Linux-Source/{TZ,TGZ,TBZ2}/CPack_Example-0.1.1-Linux.tar.{bz2,gz,Z}

All three files contain all the source files in my
${CMAKE_SOURCE_DIR}.  (Including CMakeLists.txt)



On Sat, Oct 11, 2014 at 12:05 PM, houssen <hous...@ipgp.fr> wrote:
Hello,

What is the CMake equivalent for autotools "make dist" ?
By autotools "make dist", I mean a way to wrap all sources and test files
needed to build and test the package and / or to be ready for dev.

I googled this question : I heard about CPack (and "make package"), but, I am not sure to understand if this is designed to answer the same question. Using CPack and "make package", I get a tar.gz that contains the executable (the binary in a bin directory) but without the source : this is not what I
want as sources are missing (the tar.gz is not ready for dev).

Is this the expected behavior ? ("make package" is intended to provide only
binaries to be installed ? Not the source / test files ?)
Did I miss something ? Did I forgot something in the CMakeLists.txt ? I am supposed to tar the root directory (= project directory containing hello.cpp and CMakeLists.txt) after I suppressed all BUILD directories that
could have been built previously ?

FH
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to