Re: [CMake] Generating multiple debian packages

2012-08-08 Thread Bruce Cartland
Hi Doug Ok. Works now I've upgraded to version 2.8.8 from 2.8.0. I was reaching the conclusion that components were more suited to installers such NSIS - but with a lot of confusion. Your latest example is elegant simplicity - it should go on the wiki. Thanks so much for clearing things up.

Re: [CMake] Generating multiple debian packages

2012-08-08 Thread Doug
I've update my example code here to do this; it results in much easier to configure individual packages than trying to force the components (never designed for independent packages from one project), and is extendable to support other generators that do not support components. https://github.com/s

Re: [CMake] Generating multiple debian packages

2012-08-08 Thread Bruce Cartland
Ok - not what I get on ubuntu LTS 10.4. Perhaps I need the latest version? ( I ran the original files with just the missing line (?) "install(CPack)" added). $ cmake -version cmake version 2.8.0 $ ls $ cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU --

Re: [CMake] Generating multiple debian packages

2012-08-08 Thread Doug
Woops; didn't mean to respond off list. Anyway, basically my suggestion is as part of your build generate a folder like: ${CMAKE_CURRENT_BINARY_DIR}/deploy-package-XXX/ And copy all the file you want to deploy as part of your package into that directory. Then generate a CMakeLists.txt file with

Re: [CMake] Generating multiple debian packages

2012-08-08 Thread Bruce Cartland
I've been through this and experimented with samples kindly provided by another user. Nothing works for debian packaging. What I think will work is a "workaround" from another user in 2008 _http://www.cmake.org/pipermail/cmake/2008-April/020967.html_, where I generate my own CPackConfig-runti

[CMake] CMake 2.8.8 Upgrade problem with Xcode on OS X 10.8

2012-08-08 Thread Etuka Onono
After I upgraded to OS X 10.8, I recently upgraded my CMake version to 2.8.8. I can build CMake projects if I use "Unix Makefiles" as a generator, but if I use the Xcode generator, I get the following error: The C compiler identification is GNU 4.2.1 The CXX compiler identification is GNU 4.2.

Re: [CMake] CMake 2.8.8 : Reproducible Crash in Mac OS X 10.8

2012-08-08 Thread Jerry Krinock
On 2012 Aug 08, at 07:52, Bill Hoffman wrote: > On 8/8/2012 1:32 AM, Jerry Krinock wrote: >> Upon upgrading to CMake 2.8.8 and Mac OS X 10.8, CMake crashes raises an >> exception and crashes repeatably. > 1. Does the current RC have this issue? Thank you, Bill. I don't know. > 2. Is the thin

[CMake] cmake-2.8.7 crash on cygwin

2012-08-08 Thread marco atzeri
Hi, trying to build vtk-5.10.0-1 with cygwin cmake-2.8.7, cmake crashes building vtkUnicodeCaseFoldData.h $ cmake -P vtkUnicodeString.cmake Aborted (core dumped) leaving an almost empty $ cat vtkUnicodeCaseFoldData.h // Generated file, do not edit by hand! static vtkUnicodeString::value_type

Re: [CMake] Eclipse generator on mac

2012-08-08 Thread Alexander Neundorf
On Wednesday 08 August 2012, Alexander Broekhuis wrote: > Hi > > > No, you are not missing something. > > > > It seems the Eclipse project generator needs some special handling for > > OSX. > > > > Is this the maybe same issue as this one ? > > > > http://public.kitware.com/Bug/view.php?id=125

Re: [CMake] Eclipse generator on mac

2012-08-08 Thread Alexander Broekhuis
Hi > > No, you are not missing something. > > It seems the Eclipse project generator needs some special handling for OSX. > > Is this the maybe same issue as this one ? > > http://public.kitware.com/Bug/view.php?id=12579 > > > No, I don't have any "distant" directories. My setup is like: root/CM

Re: [CMake] Eclipse generator on mac

2012-08-08 Thread Alexander Neundorf
Hi Alexander, On Wednesday 08 August 2012, Alexander Broekhuis wrote: > Hi all, > > I use the Eclipse CDT4 generator to generate unix makefiles on OSX. > Generation works without any errors, but in the generated files there are > some errors. > > There are 2 paths in the .cproject file incorrect

[CMake] Dependences to parallel project directories

2012-08-08 Thread Tero Mäntyvaara
Hi. I have got four CMake-projects: project1, project2, project3 and project4. Each project is in its own directory and these directories are parallel. Project2 is dependent on project1, project3 is dependent on project1 and project2. Project4 is dependent on project1 and project3. How can I inc

Re: [CMake] Howto create a ProjectConfig.cmake tutorial

2012-08-08 Thread Michael Wild
Oops, my bad. Apologies. Fixed now. Michael On 08/08/2012 01:04 PM, Eric Noulard wrote: > 2012/8/8 Nico Schlömer : >> Hi, >> >> I just looked at >> http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file >> to learn about exporting build information to the installation,

Re: [CMake] Howto create a ProjectConfig.cmake tutorial

2012-08-08 Thread Eric Noulard
2012/8/8 Nico Schlömer : >> see: >> cmake --help-module CMakePackageConfigHelpers > > This gives > > $ cmake --help-module CMakePackageConfigHelpers > cmake version 2.8.7 > Argument "CMakePackageConfigHelpers" to --help-module is not a CMake module. This has been added in 2.8.8. > on my system. >

[CMake] Eclipse generator on mac

2012-08-08 Thread Alexander Broekhuis
Hi all, I use the Eclipse CDT4 generator to generate unix makefiles on OSX. Generation works without any errors, but in the generated files there are some errors. There are 2 paths in the .cproject file incorrect: Changing these (remove the (framework directory) part) makes the project files

Re: [CMake] Howto create a ProjectConfig.cmake tutorial

2012-08-08 Thread Nico Schlömer
> see: > cmake --help-module CMakePackageConfigHelpers This gives $ cmake --help-module CMakePackageConfigHelpers cmake version 2.8.7 Argument "CMakePackageConfigHelpers" to --help-module is not a CMake module. on my system. I understand now that ${INSTALL_DATA_DIR} is a variable I'll just have

Re: [CMake] CMake 2.8.8 : Reproducible Crash in Mac OS X 10.8

2012-08-08 Thread Bill Hoffman
On 8/8/2012 1:32 AM, Jerry Krinock wrote: Upon upgrading to CMake 2.8.8 and Mac OS X 10.8, CMake crashes raises an exception and crashes repeatably. 1. Does the current RC have this issue? 2. Is the thing you are compiling open source? Can you give instructions on how to build and reproduce t

Re: [CMake] Boost

2012-08-08 Thread Sumit Adhikari
Problem fixed. Thanks :) On Wed, Aug 8, 2012 at 3:35 PM, Nick Overdijk wrote: > No, as far as I know you need to specify the components for boost always. > I know of some find_boost that just put everything in there when you didn't > name components, but as a rule, just specifiy the components.

Re: [CMake] Boost

2012-08-08 Thread Nick Overdijk
No, as far as I know you need to specify the components for boost always. I know of some find_boost that just put everything in there when you didn't name components, but as a rule, just specifiy the components. ;-) On Wed, Aug 8, 2012 at 1:29 PM, Sumit Adhikari wrote: > Thanks for the reply. But

Re: [CMake] "UTILITY" library?

2012-08-08 Thread Klaim - Joël Lamotte
I apparently fixed the problem by using add_dependencies() instead of target_link_libraries() ... Klaim / Joel Lamotte -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake F

Re: [CMake] Boost

2012-08-08 Thread Sumit Adhikari
Thanks for the reply. But is this is a Bug ? Regards, Sumit On Wed, Aug 8, 2012 at 1:28 PM, Nick Overdijk wrote: > Try again with this example: > > > http://stackoverflow.com/questions/3897839/how-to-link-c-program-with-boost-using-cmake > > > On 2012-08-08, at 12:52:06 , Sumit Adhikari wrote:

Re: [CMake] Boost

2012-08-08 Thread Nick Overdijk
Try again with this example: http://stackoverflow.com/questions/3897839/how-to-link-c-program-with-boost-using-cmake On 2012-08-08, at 12:52:06 , Sumit Adhikari wrote: > I am searching boost like as follows : > > # Boost Library Search > find_package (Boost) > if (Boost_FOUND) > include_dire

Re: [CMake] CMAKE_INSTALL_COMPONENT

2012-08-08 Thread Eric Noulard
2012/8/8 Alexander Broekhuis : > Hi all, > > Way back in 2007 a request/patch has been mailed to make the installation > from the command line use the CMAKE_INSTALL_COMPONENT: > http://www.cmake.org/pipermail/cmake/2007-September/016235.html > > Is something like this available in CMake now? I am r

Re: [CMake] Howto create a ProjectConfig.cmake tutorial

2012-08-08 Thread Eric Noulard
2012/8/8 Nico Schlömer : > Hi, > > I just looked at > http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file > to learn about exporting build information to the installation, and > started off by copying-and-pasting the contents of the tutorial to my > own project. It do

[CMake] Boost

2012-08-08 Thread Sumit Adhikari
I am searching boost like as follows : # Boost Library Search find_package (Boost) if (Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS}) link_directories(${Boost_LIBRARY_DIRS}) set(LIBS ${LIBS} ${Boost_LIBRARIES}) else() message(FATAL_ERROR "Boost Not Found") endif (Boost_FOUND) I

[CMake] CMAKE_INSTALL_COMPONENT

2012-08-08 Thread Alexander Broekhuis
Hi all, Way back in 2007 a request/patch has been mailed to make the installation from the command line use the CMAKE_INSTALL_COMPONENT: http://www.cmake.org/pipermail/cmake/2007-September/016235.html Is something like this available in CMake now? I am running into the same problem, and would lov

Re: [CMake] CMakeFiles

2012-08-08 Thread Rolf Eike Beer
Am 2012-08-08 10:15, schrieb Sumit Adhikari: Hi, I am new to cmake. Is there any way to change the name of the directory CMakeFiles ? No. But that question probably means you are building in source. Don't. Clean your source directory from the files that CMake generated (i.e. make clean, rm -

[CMake] Howto create a ProjectConfig.cmake tutorial

2012-08-08 Thread Nico Schlömer
Hi, I just looked at http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file to learn about exporting build information to the installation, and started off by copying-and-pasting the contents of the tutorial to my own project. It doesn't quite run through since there's

[CMake] CMakeFiles

2012-08-08 Thread Sumit Adhikari
Hi, I am new to cmake. Is there any way to change the name of the directory CMakeFiles ? Regards, -- Sumit Adhikari, Institute of Computer Technology, Faculty of Electrical Engineering, Vienna University of Technology, Gußhausstraße 27-29,1040 Vienna -- Powered by www.kitware.com Visit other

Re: [CMake] Generating multiple debian packages

2012-08-08 Thread Eric Noulard
2012/8/8 m.hergarden > I have found this to work for RPM files: > > You have to define components using: > cpack_add_component(runtime DISPLAY_NAME runtime REQUIRED INSTALL_TYPES > all) > You are right defining components is the easiest way to produce several packages (deb, rpm, zip, etc...) Th

Re: [CMake] Generating multiple debian packages

2012-08-08 Thread m.hergarden
I have found this to work for RPM files: You have to define components using: cpack_add_component(runtime DISPLAY_NAME runtime REQUIRED INSTALL_TYPES all) For rpm I had to set this: SET(CPACK_RPM_COMPONENT_INSTALL "ON" (Greppi

[CMake] Generating multiple debian packages

2012-08-08 Thread Bruce
Hi Got my shiny new cmake build system going for my project on windows, Ubuntu, and Mac. Despite a fair bit of research I'm still not sure how to generate 2 separate debian packages from the same cmake files - say myapp.deb and myapp-dev.deb. I think what I want is somehow for it to write out