[Cmake-commits] CMake branch, master, updated. v3.7.1-910-g65c18b2

2016-12-21 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  65c18b2141fb2553911104e0c10fe74d8daf5b9d (commit)
  from  6154a2cddcdb297b1aef20f501fec9af7d7b5262 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=65c18b2141fb2553911104e0c10fe74d8daf5b9d
commit 65c18b2141fb2553911104e0c10fe74d8daf5b9d
Author: Kitware Robot <kwro...@kitware.com>
AuthorDate: Thu Dec 22 00:01:04 2016 -0500
Commit: Kitware Robot <kwro...@kitware.com>
CommitDate: Thu Dec 22 00:01:04 2016 -0500

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index ff5c776..e117efb 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -1,5 +1,5 @@
 # CMake version number components.
 set(CMake_VERSION_MAJOR 3)
 set(CMake_VERSION_MINOR 7)
-set(CMake_VERSION_PATCH 20161221)
+set(CMake_VERSION_PATCH 20161222)
 #set(CMake_VERSION_RC 1)

---

Summary of changes:
 Source/CMakeVersion.cmake |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.7.1-1838-g451fea2

2016-12-21 Thread Domen Vrankar
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
   via  451fea216b47ccd5be8e699e1b08536f573e62b4 (commit)
   via  fb4a45ee9daddfc982e3e85f6f914be93dc51138 (commit)
  from  e2747bb4fca04ea829223496b39036c2b4627e7b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=451fea216b47ccd5be8e699e1b08536f573e62b4
commit 451fea216b47ccd5be8e699e1b08536f573e62b4
Merge: e2747bb fb4a45e
Author: Domen Vrankar 
AuthorDate: Wed Dec 21 12:20:31 2016 -0500
Commit: CMake Topic Stage 
CommitDate: Wed Dec 21 12:20:31 2016 -0500

Merge topic 'cpack-deb-md5sums-paths-fix' into next

fb4a45ee CPack/Deb invalid md5sums file fix


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fb4a45ee9daddfc982e3e85f6f914be93dc51138
commit fb4a45ee9daddfc982e3e85f6f914be93dc51138
Author: Domen Vrankar 
AuthorDate: Tue Dec 20 23:08:52 2016 +0100
Commit: Domen Vrankar 
CommitDate: Wed Dec 21 18:19:40 2016 +0100

CPack/Deb invalid md5sums file fix

Monolithic deb packages were packaged
with invalid md5sums file as trailing
slash in path was causing string replace
to fail and preserve build path.

Fixes #16517

diff --git a/Source/CPack/cmCPackDebGenerator.cxx 
b/Source/CPack/cmCPackDebGenerator.cxx
index 36566a4..5c50da8 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -173,7 +173,11 @@ int cmCPackDebGenerator::PackageComponentsAllInOne(
 std::string(this->GetOption("CPACK_PACKAGE_FILE_NAME")) +
 this->GetOutputExtension());
   // all GROUP in one vs all COMPONENT in one
-  localToplevel += "/" + compInstDirName;
+  // if must be here otherwise non component paths have a trailing / while
+  // components don't
+  if (!compInstDirName.empty()) {
+localToplevel += "/" + compInstDirName;
+  }
 
   /* replace the TEMP DIRECTORY with the component one */
   this->SetOption("CPACK_TEMPORARY_DIRECTORY", localToplevel.c_str());
diff --git a/Tests/RunCMake/CPack/RunCMakeTest.cmake 
b/Tests/RunCMake/CPack/RunCMakeTest.cmake
index 3077340..96141e9 100644
--- a/Tests/RunCMake/CPack/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CPack/RunCMakeTest.cmake
@@ -15,6 +15,7 @@ run_cpack_test(GENERATE_SHLIBS_LDCONFIG "DEB" true 
"COMPONENT")
 run_cpack_test(INSTALL_SCRIPTS "RPM" false "COMPONENT")
 run_cpack_test(LONG_FILENAMES "DEB" false "MONOLITHIC")
 run_cpack_test_subtests(MAIN_COMPONENT "invalid;found" "RPM" false "COMPONENT")
+run_cpack_test(MD5SUMS "DEB" false "MONOLITHIC;COMPONENT")
 run_cpack_test(MINIMAL "RPM;DEB;TGZ" false "MONOLITHIC")
 run_cpack_test_subtests(PACKAGE_CHECKSUM 
"invalid;MD5;SHA1;SHA224;SHA256;SHA384;SHA512" "TGZ" false "MONOLITHIC")
 run_cpack_test(PARTIALLY_RELOCATABLE_WARNING "RPM" false "COMPONENT")
diff --git a/Tests/RunCMake/CPack/tests/MD5SUMS/ExpectedFiles.cmake 
b/Tests/RunCMake/CPack/tests/MD5SUMS/ExpectedFiles.cmake
new file mode 100644
index 000..6142eb3
--- /dev/null
+++ b/Tests/RunCMake/CPack/tests/MD5SUMS/ExpectedFiles.cmake
@@ -0,0 +1,2 @@
+set(EXPECTED_FILES_COUNT "1")
+set(EXPECTED_FILE_CONTENT_1_LIST "/usr;/usr/foo;/usr/foo/CMakeLists.txt")
diff --git a/Tests/RunCMake/CPack/tests/MD5SUMS/VerifyResult.cmake 
b/Tests/RunCMake/CPack/tests/MD5SUMS/VerifyResult.cmake
new file mode 100644
index 000..fbdda9c
--- /dev/null
+++ b/Tests/RunCMake/CPack/tests/MD5SUMS/VerifyResult.cmake
@@ -0,0 +1,3 @@
+set(whitespaces_ "[\t\n\r ]*")
+set(md5sums_md5sums "^.* usr/foo/CMakeLists\.txt${whitespaces_}$")
+verifyDebControl("${FOUND_FILE_1}" "md5sums" "md5sums")
diff --git a/Tests/RunCMake/CPack/tests/MD5SUMS/test.cmake 
b/Tests/RunCMake/CPack/tests/MD5SUMS/test.cmake
new file mode 100644
index 000..15c5892
--- /dev/null
+++ b/Tests/RunCMake/CPack/tests/MD5SUMS/test.cmake
@@ -0,0 +1,5 @@
+install(FILES CMakeLists.txt DESTINATION foo COMPONENT test)
+
+if(PACKAGING_TYPE STREQUAL "COMPONENT")
+  set(CPACK_COMPONENTS_ALL test)
+endif()

---

Summary of changes:


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, next, updated. v3.7.1-1836-ge2747bb

2016-12-21 Thread Domen Vrankar
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
   via  e2747bb4fca04ea829223496b39036c2b4627e7b (commit)
   via  04f8752d1d46ecc1d55f50fb5dae195390e345b3 (commit)
  from  a1d713f219bab2475c540af474d80c4949234da0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e2747bb4fca04ea829223496b39036c2b4627e7b
commit e2747bb4fca04ea829223496b39036c2b4627e7b
Merge: a1d713f 04f8752
Author: Domen Vrankar 
AuthorDate: Wed Dec 21 12:19:23 2016 -0500
Commit: CMake Topic Stage 
CommitDate: Wed Dec 21 12:19:23 2016 -0500

Merge topic 'cpack-deb-md5sums-paths-fix' into next

04f8752d fixup! CPack/Deb invalid md5sums file fix


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=04f8752d1d46ecc1d55f50fb5dae195390e345b3
commit 04f8752d1d46ecc1d55f50fb5dae195390e345b3
Author: Domen Vrankar 
AuthorDate: Wed Dec 21 18:18:42 2016 +0100
Commit: Domen Vrankar 
CommitDate: Wed Dec 21 18:18:42 2016 +0100

fixup! CPack/Deb invalid md5sums file fix

diff --git a/Source/CPack/cmCPackDebGenerator.cxx 
b/Source/CPack/cmCPackDebGenerator.cxx
index d45eb78..5c50da8 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -175,8 +175,9 @@ int cmCPackDebGenerator::PackageComponentsAllInOne(
   // all GROUP in one vs all COMPONENT in one
   // if must be here otherwise non component paths have a trailing / while
   // components don't
-  if (!compInstDirName.empty())
+  if (!compInstDirName.empty()) {
 localToplevel += "/" + compInstDirName;
+  }
 
   /* replace the TEMP DIRECTORY with the component one */
   this->SetOption("CPACK_TEMPORARY_DIRECTORY", localToplevel.c_str());

---

Summary of changes:
 Source/CPack/cmCPackDebGenerator.cxx |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


Re: [cmake-developers] import another compiler to cmake

2016-12-21 Thread Ben Boeckel
On Wed, Dec 21, 2016 at 13:00:29 +0100, Payam Samimi wrote:
> I'm working for a big company in Germany as software developer. They
> develope their code and test modules in c++ and using CMake. Additionally
> they use their own compiler which is company specific and they would like
> import or connect their own compiler to CMake, that Cmake can use it. So,
> this is my task, and I would like to ask you whether you have any
> suggestion that could help me.

Adding a compiler to CMake is possible, but in order to ensure that it
continues to work, a nightly dashboard would be helpful to catch any
problems changes introduce for the compiler. Instructions for setting up
a dashboard are here:

https://cmake.org/Wiki/CMake/Git/Dashboard

To actually add support, it would need to be added to the detection
logic under the `Modules/Compiler` directory and to the
`Modules/CMakeCompilerIdDetection.cmake` module. Docs would also be
necessary.

There also may be more, but that is a minimum. Brad knows much more, but
is currently on vacation until the second week in January.

Thanks,

--Ben
-- 

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-developers


Re: [CMake] Cmake

2016-12-21 Thread Dan Liew
Hi Aishwarya,

On 21 December 2016 at 11:51, aishwarya selvaraj
 wrote:
> Hi Everyone,
> Myself Aishwarya .I wanted to make use of Cmake , but I'm really new to this
> and doesn't have a clear idea about it.
>
> 1) My Goal :
> I'm using Praat a speech Processing Software to create plug - in for my
> Algorithm on Pitch and Time scaling .(I have the .cpp file)
> In order to do that I need to use the binary file obtained by compiling .cpp
> file
> in my Praat Script .
> I intent to share this plug - in with others ,Hence I want it to be machine
> independent .The binary file I obtained is using gcc in Linux (16.0.2),
> which clearly wont work in Mac or Windows or even in lower Linux Version.
> To solve this Problem I understand that I need to make use of Cmake files .

CMake is not going make your binaries machine independent. It can give
a way to build your application that will successfully compile on
different platforms but you will have to compile the binary on each
platform that you are targeting.

> 2) My .cpp file called TSM_CODE_V3.cpp is compiled as
> g++ TSM_CODE_V3.cpp -larmadillo -lsndfile -o TSM
>
> where armadillo and sndfile are two depended libraries.
>
> 3) What I have done :
> I have gone through a loot of tutorials for cmake .I have wage idea , but
> I'm not able to solve my problem mentioned above .
> My folder TSM consists of
> build - the folder which consists the final executable binary file and the
> related cmake files required to create binary file
> src - consists of my TSM_CODE_V3.cpp code
> CMakeLists.txt - The top level Cmake file :
>
>  cmake_minimum_required(VERSION 2.8.9)
>  project(directory_TSM)
>  include_directories(include)
>  file(GLOB SOURCES "src/*.cpp")
>  add_executable(tsm ${SOURCES})

Do not use `file(GLOB ...)` to find source files. It is very bad
practice because it prevents CMake from re-generating itself
automatically. You should list the source files explicitly. That way
when you add/remove a source file the fact you updated the
`CMakeLists.txt` file will trigger a re-configure of the build system.

>
> I need to include the library armadillo and lidsndfile .
> I dont know how to include it into my cmakefile .
> I have come across find_package ,find_library  but I am sure about it .
>  To create my Praat Plug - in I need to compile the source code no matter in
> which system it is ,which may or may not have these two libraries already
> installed.
> So how how do I add libraries using cmake ?

Use `target_link_libraries()` to link libraries into your target. If
you're not sure how to use it I highly recommend you read the
documentation for it [1].

In terms of finding the library if there is no package for those
libraries you can use the `find_library()` command. Again if you're
not sure how to use it check out the documentation [2].

Seeing as you are very new to CMake I would also recommend reading [3]
which explains some important high level concepts in CMake.

[1] https://cmake.org/cmake/help/v3.6/command/target_link_libraries.html
[2] https://cmake.org/cmake/help/v3.6/command/find_library.html
[3] https://cmake.org/cmake/help/v3.6/manual/cmake-buildsystem.7.html
-- 

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


Re: [CMake] Cmake

2016-12-21 Thread Stuermer, Michael SP/HZA-ZSEP
Hello,

To add your mentioned libraries to the executable you have to link against 
them. For this the cmake command

target_link_libraries() is used: 
https://cmake.org/cmake/help/v3.7/command/target_link_libraries.html

In your case the cmake code should look similar to this:

target_link_libraries(tsm armadillo lidsndfile)

best regards,
Michael

From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of aishwarya selvaraj
Sent: Wednesday, December 21, 2016 12:52 PM
To: cmake@cmake.org
Subject: [CMake] Cmake

Hi Everyone,
Myself Aishwarya .I wanted to make use of Cmake , but I'm really new to this 
and doesn't have a clear idea about it.
1) My Goal :
I'm using Praat a speech Processing Software to create plug - in for my 
Algorithm on Pitch and Time scaling .(I have the .cpp file)
In order to do that I need to use the binary file obtained by compiling .cpp 
file
​in my Praat Script .
I intent to share this plug - in with others ,Hence I want it to be machine 
independent .The binary file I obtained is using gcc in Linux (16.0.2), which 
clearly wont work in Mac or Windows or even in lower Linux Version.
To solve this Problem I understand that I need to make use of Cmake files .
2) My .cpp file called TSM_CODE_V3.cpp is compiled as
g++ TSM_CODE_V3.cpp -larmadillo -lsndfile -o TSM
where armadillo and sndfile are two depended libraries.

3) What I have done :
​I have gone through a loot of tutorials for cmake .I have wage idea , but I'm 
not able to solve my problem mentioned above .
​My folder TSM consists of
build - the folder which consists the final executable binary file and the 
related cmake files required to create binary file
src - consists of my TSM_CODE_V3.cpp code
CMakeLists.txt - The top level Cmake file :

 cmake_minimum_required(VERSION 2.8.9)
 project(directory_TSM)
 include_directories(include)
 file(GLOB SOURCES "src/*.cpp")
 add_executable(tsm ${SOURCES})

I need to include the library armadillo and lidsndfile .
I dont know how to include it into my cmakefile .
I have come across find_package ,find_library  but I am sure about it .
 To create my Praat Plug - in I need to compile the source code no matter in 
which system it is ,which may or may not have these two libraries already 
installed.
So how how do I add libraries using cmake ?
I hope you got my point .
Could help me ?

Hoping for your reply .

--
Regards,
Aishwarya Selvaraj
-- 

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

[cmake-developers] Unknown Imported & Global libraries

2016-12-21 Thread Florent Castelli
Hi,

In my project, I have to deal with 3rd party libraries. Either the library is 
available on the system and then I will try to use that, or I will use sources 
bundled in my repository. This is in order to make Linux maintainers happy who 
want to have a system-wide shared library, but to also keep a self contained 
build available by default.
But all that logic is cumbersome, so it usually ends up in a dedicated file 
looking like:

find_package(foo)
if(NOT FOO_FOUND)
  add_library(foo STATIC foo.cpp)
endif()

Then with modern CMake, you don’t just get variables but imported targets, 
usually defined with something like:
add_library(FOO::FOO UNKNOWN IMPORTED)

All those scripts being used through multiple levels of add_subdirectory() 
calls, makes it so that the imported targets are only scoped to the leaf file 
and not visible to the other libraries that may want to use it.
One way to work around that would be to mark them GLOBAL. But the problem is 
that I then get an error such as:
CMake Error at CMakeLists.txt:1533 (target_link_libraries):
  Target “FOO::FOO" of type UNKNOWN_LIBRARY may not be linked into
  another target.  One may link only to STATIC or SHARED libraries, or to
  executables with the ENABLE_EXPORTS property set.
Without the GLOBAL keyword, it links just fine (as long as I keep the 
definition in the same scope). So why would GLOBAL trigger a different 
behaviour?

Any ideas why that would be? I went through the code quickly, but I didn’t find 
anything relevant, so I’m quite puzzled.

I know I could use instead include() instead of add_subdirectory() to go 
through the external dependencies but I believe that’s a wrong fix. Scoping 
variables is actually nice.

Also, I would very much desire a setting to make imported libraries global by 
default to increase the legibility of most code and avoid having huge CMake 
scripts as most people currently do. Splitting targets in different files 
should be the norm!
I can also override add_library to add the GLOBAL keyword automatically, which 
would work if UNKNOWN IMPORTED GLOBAL was actually working...

/Florent
-- 

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-developers

[cmake-developers] import another compiler to cmake

2016-12-21 Thread Payam Samimi
Hi everybody,

I'm working for a big company in Germany as software developer. They
develope their code and test modules in c++ and using CMake. Additionally
they use their own compiler which is company specific and they would like
import or connect their own compiler to CMake, that Cmake can use it. So,
this is my task, and I would like to ask you whether you have any
suggestion that could help me.


regards,
Payam
-- 

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-developers

[CMake] Cmake

2016-12-21 Thread aishwarya selvaraj
Hi Everyone,
Myself Aishwarya .I wanted to make use of Cmake , but I'm really new to
this and doesn't have a clear idea about it.

1) *My Goal :*
I'm using Praat a speech Processing Software to create plug - in for my
Algorithm on Pitch and Time scaling .(I have the .cpp file)
In order to do that I need to use the binary file obtained by compiling
.cpp file
​in my Praat Script .
I intent to share this plug - in with others ,Hence I want it to be machine
independent .The binary file I obtained is using gcc in Linux (16.0.2),
which clearly wont work in Mac or Windows or even in lower Linux Version.
To solve this Problem I understand that I need to make use of Cmake files .

2) My .cpp file called TSM_CODE_V3.cpp is compiled as
g++ TSM_CODE_V3.cpp -larmadillo -lsndfile -o TSM

where armadillo and sndfile are two depended libraries.

3)* What I have done :*
​I have gone through a loot of tutorials for cmake .I have wage idea , but
I'm not able to solve my problem mentioned above .
​My folder TSM consists of
build - the folder which consists the final executable binary file and the
related cmake files required to create binary file
src - consists of my TSM_CODE_V3.cpp code
CMakeLists.txt - The top level Cmake file :

 cmake_minimum_required(VERSION 2.8.9)
 project(directory_TSM)
 include_directories(include)
 file(GLOB SOURCES "src/*.cpp")
 add_executable(tsm ${SOURCES})


I need to include the library armadillo and lidsndfile .
I dont know how to include it into my cmakefile .
I have come across find_package ,find_library  but I am sure about it .
 To create my Praat Plug - in I need to compile the source code no matter
in which system it is ,which may or may not have these two libraries
already installed.
So how how do I add libraries using cmake ?
I hope you got my point .
Could help me ?


Hoping for your reply .

-- 
Regards,
Aishwarya Selvaraj
-- 

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

Re: [CMake] cpack multiple packages

2016-12-21 Thread Dvir Yitzchaki
Thanks, but as I understand a component can only belong to one group.
How can I get the same component/target on multiple packages?

From: Eric Noulard [mailto:eric.noul...@gmail.com]
Sent: Wednesday, December 21, 2016 10:42 AM
To: Dvir Yitzchaki 
Cc: cmake@cmake.org
Subject: Re: [CMake] cpack multiple packages

When playing with component you have 3 major way to package which are governed 
by the value
of CPACK_COMPONENTS_GROUPING:


1 package per component -> set(CPACK_COMPONENTS_GROUPING IGNORE)
1 package for all -> set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)
1 package per component group the default behavior.

In order to get 1 package per group you have to specify group when specifying 
component, more information
here:
https://cmake.org/cmake/help/v3.7/module/CPackComponent.html
https://cmake.org/Wiki/CMake:Component_Install_With_CPack#Principles_of_CPack_Component_Packaging

2016-12-21 9:14 GMT+01:00 Dvir Yitzchaki 
>:
Hi.

I have a big project which produces several zip packages.
Some files are common to all packages while others are unique per package.

Is there a way to create these packages using cpack?

I tried to use components but it seems that either it puts all components in 
one package or makes one package per component.

Thanks,

Dvir

--

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



--
Eric
-- 

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

Re: [CMake] cpack multiple packages

2016-12-21 Thread Eric Noulard
When playing with component you have 3 major way to package which are
governed by the value
of CPACK_COMPONENTS_GROUPING:


1 package per component -> set(CPACK_COMPONENTS_GROUPING IGNORE)
1 package for all -> set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)
1 package per component group the default behavior.

In order to get 1 package per group you have to specify group when
specifying component, more information
here:
https://cmake.org/cmake/help/v3.7/module/CPackComponent.html
https://cmake.org/Wiki/CMake:Component_Install_With_CPack#Principles_of_CPack_Component_Packaging

2016-12-21 9:14 GMT+01:00 Dvir Yitzchaki :

> Hi.
>
>
>
> I have a big project which produces several zip packages.
>
> Some files are common to all packages while others are unique per package.
>
>
>
> Is there a way to create these packages using cpack?
>
>
>
> I tried to use components but it seems that either it puts all components
> in one package or makes one package per component.
>
>
>
> Thanks,
>
>
>
> Dvir
>
> --
>
> 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
>



-- 
Eric
-- 

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

[CMake] cpack multiple packages

2016-12-21 Thread Dvir Yitzchaki
Hi.

I have a big project which produces several zip packages.
Some files are common to all packages while others are unique per package.

Is there a way to create these packages using cpack?

I tried to use components but it seems that either it puts all components in 
one package or makes one package per component.

Thanks,

Dvir
-- 

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