Re: [CMake] How does CPACK decide what goes into release packages?

2010-05-17 Thread Eric Noulard
2010/5/17 Tyler Roscoe : > On Mon, May 17, 2010 at 12:53:34PM -0500, kent williams wrote: >> "Internally, CPack will use CMake's install mechanism to automatically >> populate the package." > > Right. Mostly, all that CPack does is call "make install" on your > project with a special CMAKE_INSTALL_

Re: [CMake] Compilation using Qt 4 under windows 7

2010-05-17 Thread Michael Hertling
On 05/17/2010 10:20 PM, n0p n0p wrote: > Hello, > > I have a little application which uses Qt 4. It compiles without problem on > linux but the CMakeLists.txt file > i use under linux seems to not work on windows and i don't understand why. > The CMakeLists.txt file I use > is the following: > >

Re: [CMake] Can not install two executable using CPACK_NSIS_EXTRA_INSTALL_COMMANDS .

2010-05-17 Thread Michael Hertling
On 05/17/2010 02:03 PM, Benoit wrote: > Hy I've created my CPACK in a way that during the installation the > PostgreSQL and the MSVC Redistributable are installed automatically. > however this doesn't work when i put them both, but when there is only one > it work perfectly for this one > > Exempl

Re: [CMake] distribute third party libs with NSIS

2010-05-17 Thread Tyler Roscoe
On Mon, May 17, 2010 at 02:41:21PM -0400, Michaël Presseau wrote: > Hi, I have an application and I need to create an installer. I use > CPack with NSIS. For now, I'm using : find_package(Boost COMPONENTS > thread date_time filesystem REQUIRED) > > This give me le .lib associate to the dll file. T

Re: [CMake] Compilation using Qt 4 under windows 7

2010-05-17 Thread Ryan Pavlik
Don't use * (filename globs) - write out each individual filename for MOC_HEADERS (although it looks like you're not using that variable? not sure what exactly is going on here) If that doesn't help, let us know. Ryan On 05/17/2010 03:20 PM, n0p n0p wrote: Hello, I have a little application

Re: [CMake] How does CPACK decide what goes into release packages?

2010-05-17 Thread Tyler Roscoe
On Mon, May 17, 2010 at 12:53:34PM -0500, kent williams wrote: > "Internally, CPack will use CMake's install mechanism to automatically > populate the package." Right. Mostly, all that CPack does is call "make install" on your project with a special CMAKE_INSTALL_PREFIX. > but when I add > > inc

[CMake] Compilation using Qt 4 under windows 7

2010-05-17 Thread n0p n0p
Hello, I have a little application which uses Qt 4. It compiles without problem on linux but the CMakeLists.txt file i use under linux seems to not work on windows and i don't understand why. The CMakeLists.txt file I use is the following: cmake_minimum_required(VERSION 2.6) project(iBusHelper)

[CMake] distribute third party libs with NSIS

2010-05-17 Thread Michaël Presseau
Hi, I have an application and I need to create an installer. I use CPack with NSIS. For now, I'm using : find_package(Boost COMPONENTS thread date_time filesystem REQUIRED) This give me le .lib associate to the dll file. This is compiling and working on computer with Boost already install. My p

Re: [CMake] CMAKE_LIBRARY_PATH appears not to work properly for finding libtcl

2010-05-17 Thread Alan W. Irwin
I have just found another example of the same issue. A PLplot developer complained CMake would not find his special python executable. The relevant code in FindPythonInterp.cmake contains these alternate names for the python executable in FIND_PROGRAM NAMES python2.6 python2.5 python2.4 pytho

[CMake] How does CPACK decide what goes into release packages?

2010-05-17 Thread kent williams
It's mentioned in passing on the CMake Wiki, which is all the documentation I've found for CPack. Namely "Internally, CPack will use CMake's install mechanism to automatically populate the package." but when I add include(CPack) and then run make package It generates empty install packages.

Re: [CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread Michael Wild
Glad I could help. The problem with globbing is that CMake doesn't notice when you add or remove a file, requiring you to re-run CMake manually every time you do so. And maintaining a list of source/header files in your CMake build system isn't that bad, really. If the list gets too long, you c

Re: [CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread aaron.meadows
AWESOME! That's completely right!!! Thanks for the quick response, this was really frustrating me! So, file globs are evil? Not to get off subject, but care to expand on that a bit? Thanks for the help, I really appreciate it!! Aaron C. Meadows -Original Message- From: Michael Wild

[CMake] multiple packages via CPack in one project ?

2010-05-17 Thread Dr . Stefan Sablatnög
Hi everybody, Is it possible to create multiple different packages from one build process using CPack? -- best regards Dr. Stefan Sablatnög email: stefan.sablatn...@svox.com phone: ++49 731 15239474 address: SVOX Ulm Magirus Deutz-Straße 16 89077 Ulm ___

Re: [CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread aaron.meadows
Incidentally, I have the same error on the LIBRARY_OUTPUT_PATH vs. CMAKE_LIBRARY_OUTPUT_PATH, but they were being placed in the directory I wanted. Is that a but or just a non-obvious feature? Aaron C. Meadows -Original Message- From: Michael Wild [mailto:them...@gmail.com] Sent: Monda

Re: [CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread Michael Wild
Naaa, the variables are simply called CMAKE_RUNTIME_OUTPUT_DIRECTORY, CMAKE_LIBRARY_OUTPUT_DIRECTORY and CMAKE_ARCHIVE_OUTPUT_DIRECTORY. Aaron mixed them up with the respective target property names A few other things: - you can call INCLUDE_DIRECTORIES with more than one directory - NEVER use

Re: [CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread Tyler Roscoe
You probably need the Prefix Hack: http://www.itk.org/Bug/view.php?id=8243 tyler On Mon, May 17, 2010 at 09:53:34AM -0500, aaron.mead...@thomsonreuters.com wrote: > Hi All! > > > > I'm trying to migrate an existing Visual Studio 8 2005 source tree to > CMake. The only problem I'm having rig

[CMake] Binaries not ending up in the RUNTIME_OUTPUT_DIRECTORY

2010-05-17 Thread aaron.meadows
Hi All! I'm trying to migrate an existing Visual Studio 8 2005 source tree to CMake. The only problem I'm having right now is getting the build artifacts to end up in the directories I want them in. I would like everything to show up in the ${PROJECT_BINARY_DIR}/bin dir, but only static libra

[CMake] LINK_FLAGS for java?

2010-05-17 Thread Christoph Höger
Hi, I am currently struggling with a jar file build. I have set SET(CMAKE_Java_COMPILE_OBJECT " ") and SET(CMAKE_Java_CREATE_STATIC_LIBRARY " -cf ") to handle the path issues from the subdirectories. (Every jar file target gets the approtiate linker and compiler flags set). But when I bui

Re: [CMake] CMAKE_LIBRARY_PATH appears not to work properly for finding libtcl

2010-05-17 Thread Luigi Calori
Bill Hoffman wrote: OK, your right, it does prefer names that show up first in the name list even if they are later in the total path. I think I have got the same problem (bug) as had FindFreetype always getting system lib even if I a custom version was present in a folder lib under a path speci

[CMake] Can not install two executable using CPACK_NSIS_EXTRA_INSTALL_COMMANDS .

2010-05-17 Thread Benoit
Hy I've created my CPACK in a way that during the installation the PostgreSQL and the MSVC Redistributable are installed automatically. however this doesn't work when i put them both, but when there is only one it work perfectly for this one Exemple set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait

Re: [CMake] Unit tests, but not CTest

2010-05-17 Thread Michael Hertling
On 05/16/2010 11:34 PM, Magnus Therning wrote: > On 14/05/10 22:28, Michael Hertling wrote: >> On 05/14/2010 08:24 AM, Magnus Therning wrote: > [...] >>> Thanks for this analysis, it makes the problem a lot clearer to me. One >>> thing it doesn't clarify is how ADD_CUSTOM_COMMAND( TARGET ... POST_

[CMake] Jar resource files

2010-05-17 Thread Christoph Höger
Hi, does anyone know how to make cmake aware of non-class files for a .jar archive (like, e.g. MANIFEST.MF or other resources)? regards Christoph signature.asc Description: Dies ist ein digital signierter Nachrichtenteil ___ Powered by www.kitware.co

[CMake] [repost (correct)] Platform toolset

2010-05-17 Thread QbProg
mmm, seems like last email was partially stripped. Dear CMake users, I would like to set the "Platform Toolset" to (v90) in the Visual Studio 2010 generator. This would allow me to compile with VC 2008 and edit with the new VC 10 ide. >From what I was able to get, I only need to add a PlatformToo

Re: [CMake] CMAKE_LIBRARY_PATH appears not to work properly for finding libtcl

2010-05-17 Thread Michael Wild
+1 from me. I think it also would simplify FindPython.cmake if I remember correctly. Perhaps an option (e.g. NAMES_FIRST) could be be added to find_{library,path,file,program} to trigger the new behavior. This would maintain backward-compatibility and make things more flexible. Michael On 17.

[CMake] Platform toolset

2010-05-17 Thread QbProg
Dear CMake users, I would like to set the "Platform Toolset" to (v90) in the Visual Studio 2010 generator. This would allow me to compile with VC 2008 and edit with the new VC 10 ide. >From what I was able to get, I only need to add a v90 line to a PropertyGroup labeled "Configuration" in the pr

Re: [CMake] CMAKE_LIBRARY_PATH appears not to work properly for finding libtcl

2010-05-17 Thread Marcel Loose
Hi all, Sorry to bump in late in this discussing (Ascension day and all that). I've also hit the same problem (see http://www.mail-archive.com/cmake@cmake.org/msg27838.html). In this case it was related to FindBoost.cmake, but the issue is the same. I would be very much in favour of turning the