Re: [CMake] Issue w/ myproj-targets-.cmake not being generated.

2011-10-06 Thread Raindog
On 10/6/2011 7:56 PM, Raindog wrote: On 10/6/2011 7:04 PM, Raindog wrote: Hello, I have code like the following in my CMakeLists.txt file to make it simpler to import code from a library. install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../lib/${BUILD_TYPE_GNU_ONLY} E

Re: [CMake] Issue w/ myproj-targets-.cmake not being generated.

2011-10-06 Thread Raindog
On 10/6/2011 7:04 PM, Raindog wrote: Hello, I have code like the following in my CMakeLists.txt file to make it simpler to import code from a library. install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../lib/${BUILD_TYPE_GNU_ONLY} EXPORT ${PROJECT_NAME}-targets) instal

Re: [CMake] Custom install target

2011-10-06 Thread Michael Hertling
On 10/06/2011 08:23 AM, ycollette.nos...@free.fr wrote: > Hello, > > I would like to create a custom install target: install-update > The things done by this target are: > - change CMAKE_INSTALL_PREFIX to a specific directory: > CMAKE_BINARY_PREFIX/PROJECT_NAME-REVISION_NUMBER > - run "make insta

[CMake] Issue w/ myproj-targets-.cmake not being generated.

2011-10-06 Thread Raindog
Hello, I have code like the following in my CMakeLists.txt file to make it simpler to import code from a library. install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../lib/${BUILD_TYPE_GNU_ONLY} EXPORT ${PROJECT_NAME}-targets) install(EXPORT ${PROJECT_NAME}-targets DESTI

Re: [CMake] Still problems with add_custom_command

2011-10-06 Thread Michael Hertling
On 10/06/2011 05:40 PM, Martin Kupke wrote: > Hi, > > in my CMake project I have the need for a custom command that should be > processed in case a file is touched...that is the file the custom > command depends on. I already use the add_custom_command and > add_custom_target CMake instructions

[CMake] CDT generator - CDT 8.0.1 [Visual Studio compiler support]

2011-10-06 Thread Nicholas Yue
Hi, Using CMake 2.8.4, I see Eclipse CDT4 generator support for NMake With the recent release of CDT 8.X, there is Visual Studio compiler as a new/separate toolchain. Are there plans to support that as a generator? Regards -- Nicholas Yue Graphics - RenderMan, Visualization, OpenGL, HDF5

Re: [CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Sheri
On 10/6/2011 5:35 PM, Sheri wrote: On 10/6/2011 12:30 PM, Bill Hoffman wrote: On 10/6/2011 11:50 AM, Sheri wrote: I was previously using 2.8.0. With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a couple oddities: My Wacom mouse can't seem to activate any controls on Cmake-

Re: [CMake] STREQUAL not functioning?

2011-10-06 Thread Michael Hertling
On 10/06/2011 08:51 PM, Robert Dailey wrote: > Well there you go, deleting the cache & reconfiguring fixed it. That was > weird. > > Thanks for the help! FYI, the attached CMakeLists.txt examines a variable's value in 5 cases: NONEXIST: No value in current scope or in cache. SCOPEONLY: Value in

Re: [CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Sheri
On 10/6/2011 12:30 PM, Bill Hoffman wrote: On 10/6/2011 11:50 AM, Sheri wrote: I was previously using 2.8.0. With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a couple oddities: My Wacom mouse can't seem to activate any controls on Cmake-Gui. It still works fine with 2.8.0.

[CMake] Target-specific include directories?

2011-10-06 Thread Robert Dailey
I'm using cmake (through the GUI) on Windows (version 2.8.5). Currently I have a define_project() function that all 100 or so sub-directories use to define its project. This function calls add_executable(), sets target properties, and everything necessary to set it up properly to build in Visual S

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-10-06 Thread Peter Kümmel
On 06.10.2011 21:14, Peter Kümmel wrote: OK, so I think this project is way too small for this test. There is some fixed overhead in the process here, and we are seeing it. We are talking about .5 seconds difference to check a whole build system. If you want to do tests like this, you need a

Re: [CMake] FindQt4

2011-10-06 Thread Clinton Stimpson
On Friday, September 30, 2011 03:54:26 pm MM wrote: > hi, > > I generated a msvc10 solution with cmake 2.8.5. > > I use the following in the project's CMakeLists.txt > FIND_PACKAGE(Qt4 4.5.3 COMPONENTS QtCore QtGui QtOpenGL REQUIRED) > IF(QT4_FOUND) > INCLUDE(${QT_USE_FILE}) > TARGET_LINK_LIB

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-10-06 Thread Peter Kümmel
OK, so I think this project is way too small for this test. There is some fixed overhead in the process here, and we are seeing it. We are talking about .5 seconds difference to check a whole build system. If you want to do tests like this, you need a much bigger project. I am sure that CMake

Re: [CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Andreas Pakulat
On 06.10.11 20:21:33, Andreas Pakulat wrote: > On 06.10.11 12:30:09, Bill Hoffman wrote: > > On 10/6/2011 11:50 AM, Sheri wrote: > > >I was previously using 2.8.0. > > > > > >With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a > > >couple oddities: > > > > > >My Wacom mouse can'

Re: [CMake] STREQUAL not functioning?

2011-10-06 Thread Robert Dailey
Well there you go, deleting the cache & reconfiguring fixed it. That was weird. Thanks for the help! - Robert Dailey On Thu, Oct 6, 2011 at 1:50 PM, Robert Dailey wrote: > Ok interesting, it is working for me too. I guess my reproducible use case > was invalid. > > (BTW, I'm running t

Re: [CMake] STREQUAL not functioning?

2011-10-06 Thread Robert Dailey
Ok interesting, it is working for me too. I guess my reproducible use case was invalid. (BTW, I'm running through cmake-gui on Windows 7 x64 using CMake version 2.8.5) My use case was a simplified version of the real code. FUBARTEST is actually a cache variable defined by the root CMakeLists.txt

Re: [CMake] STREQUAL not functioning?

2011-10-06 Thread Eric Noulard
2011/10/6 Robert Dailey : > According to the CMake documentation, the `STREQUAL` comparison is allowed > to take either a VARIABLE or a STRING as either parameter. So, in this > example below, the message does NOT print, which is broken: >     set( FUBARTEST "OK" ) >     if( FUBARTEST STREQUAL "OK"

Re: [CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Andreas Pakulat
On 06.10.11 12:30:09, Bill Hoffman wrote: > On 10/6/2011 11:50 AM, Sheri wrote: > >I was previously using 2.8.0. > > > >With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a > >couple oddities: > > > >My Wacom mouse can't seem to activate any controls on Cmake-Gui. It > >still wor

[CMake] STREQUAL not functioning?

2011-10-06 Thread Robert Dailey
According to the CMake documentation, the `STREQUAL` comparison is allowed to take either a VARIABLE or a STRING as either parameter. So, in this example below, the message does NOT print, which is broken: set( FUBARTEST "OK" ) if( FUBARTEST STREQUAL "OK" ) message( "It Worked" ) e

Re: [CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Bill Hoffman
On 10/6/2011 11:50 AM, Sheri wrote: I was previously using 2.8.0. With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a couple oddities: My Wacom mouse can't seem to activate any controls on Cmake-Gui. It still works fine with 2.8.0. Do other mice work? I can't see how there

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-10-06 Thread Bill Hoffman
On 10/6/2011 12:07 PM, Arnaud Gelas wrote: Hi Bill, Here are some timing, I made for ITK to compare ninja vs make (made last month). See results below The difference is not much, especially when you realized that none of the data have been downloaded, and I am not sure that at the end we get th

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-10-06 Thread Arnaud Gelas
Hi Bill, Here are some timing, I made for ITK to compare ninja vs make (made last month). See results below The difference is not much, especially when you realized that none of the data have been downloaded, and I am not sure that at the end we get the same binary tree... Encouraging m

[CMake] Version 2.8.6 Issues with Cmake-Gui and CTest

2011-10-06 Thread Sheri
I was previously using 2.8.0. With 2.8.6 (from zipped binaries for win32-x86) I immediately noticed a couple oddities: My Wacom mouse can't seem to activate any controls on Cmake-Gui. It still works fine with 2.8.0. When the new version of CTest runs, my firewall reports it is trying to co

[CMake] Still problems with add_custom_command

2011-10-06 Thread Martin Kupke
Hi, in my CMake project I have the need for a custom command that should be processed in case a file is touched...that is the file the custom command depends on. I already use the add_custom_command and add_custom_target CMake instructions in my project, but always for CMakeLists.txt files in

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-10-06 Thread Bill Hoffman
On 10/5/2011 4:13 PM, Peter Kümmel wrote: On 05.10.2011 20:38, Alexander Neundorf wrote: On Wednesday 05 October 2011, Peter Kümmel wrote: And here some numbers to compare it with Qt's qmake. I've used this project: http://kst-plot.kde.org/ which supports qmake and cmake. Running make/ninja on

Re: [CMake] Include source files on a per-configuration basis

2011-10-06 Thread Michael Wild
On 10/06/2011 08:14 AM, Michael Hertling wrote: > On 10/06/2011 07:04 AM, Michael Wild wrote: >> On Thu 06 Oct 2011 05:17:00 AM CEST, Michael Hertling wrote: >>> On 10/05/2011 10:47 PM, Robert Dailey wrote: In my particular CMake project, I have three CPP files: a.cpp b.

Re: [CMake] modifying the PATH during NSIS intallation

2011-10-06 Thread pellegrini
forget my question. In the meantime, I solved my problem. For those interested, there is an option for this: CPACK_NSIS_MODIFY_PATH sorry Eric pellegrini a écrit : Hi all, I recently discovered the (very) useful CPack program from CMake. I would like to build an NSIS installer that, when l

[CMake] modifying the PATH during NSIS intallation

2011-10-06 Thread pellegrini
Hi all, I recently discovered the (very) useful CPack program from CMake. I would like to build an NSIS installer that, when launched, will, as well as installing my package, will also modify the PATH with the directory where my executables have been installed. Is that something (if so, how) t