Re: [CMake] How to make CPACK_NSIS_MODIFY_PATH work without TARGETS?

2009-04-24 Thread michael kapelko
I found out it's not TARGETS, but DESTINATION that matters for CPACK_NSIS_MODIFY_PATH to work. When I set DESTINATION to bin rather than libW32, it's added to Windows PATH without a problem. That's really strange. ___ Powered by www.kitware.com Visit

Re: [CMake] cmakelists.txt for GraphicsMagick or ImageMagick

2009-04-24 Thread Philip Lowman
On Fri, Apr 24, 2009 at 8:01 PM, Pau Garcia i Quiles wrote: > On Fri, Apr 24, 2009 at 7:13 PM, Miguel A. Figueroa-Villanueva > wrote: > > On Fri, Apr 24, 2009 at 6:14 AM, Boudewijn Rempt wrote: > >> Has anyone by any chance already done a CMakeLists.txt file for > GraphicsMagick > >> or ImageMagi

Re: [CMake] cmakelists.txt for GraphicsMagick or ImageMagick

2009-04-24 Thread Pau Garcia i Quiles
On Fri, Apr 24, 2009 at 7:13 PM, Miguel A. Figueroa-Villanueva wrote: > On Fri, Apr 24, 2009 at 6:14 AM, Boudewijn Rempt wrote: >> Has anyone by any chance already done a CMakeLists.txt file for >> GraphicsMagick >> or ImageMagick? I'd like to integrate either in the build of our application, >>

Re: [CMake] CPack - skipping licensing screen

2009-04-24 Thread Daniel Blezek
Hi Bill, James, Easier than I expected. If CPACK_RESOURCE_FILE_LICENSE is not defined, set CPACK_RESOURCE_FILE_LICENSE_PROVIDED to 0, add a !if macro to the NSIS installer script and happiness ensues. Here's the patch, the change worked in my installed version of CMake, but I didn't run the

Re: [CMake] DESTDIR, CMAKE_INSTALL_PREFIX, rpath, dynamic libs

2009-04-24 Thread Alexander Neundorf
On Friday 24 April 2009, Darren Weber wrote: > In the cmake FAQ, it indicates that cmake will use the DESTDIR on the > command line as the root of the install path. > http://www.vtk.org/Wiki/CMake_FAQ (item 8.1, as of April 2009) > > What is the level of precedence for this variable setting, with r

[CMake] DESTDIR, CMAKE_INSTALL_PREFIX, rpath, dynamic libs

2009-04-24 Thread Darren Weber
In the cmake FAQ, it indicates that cmake will use the DESTDIR on the command line as the root of the install path. http://www.vtk.org/Wiki/CMake_FAQ (item 8.1, as of April 2009) What is the level of precedence for this variable setting, with regard to cache values that are set at the time of cmak

Re: [CMake] A potential bug ?

2009-04-24 Thread Alexander Neundorf
On Friday 24 April 2009, Theodore Papadopoulo wrote: > I'm trying to use cmake for one of my projects. > > As an experience, I have tried to mimick the gnu make check as indicated > in the web pages, Where ? > but decided > for some reason to keep the "test" target name. But when, I issuing a >

[CMake] A potential bug ?

2009-04-24 Thread Theodore Papadopoulo
I'm trying to use cmake for one of my projects. As an experience, I have tried to mimick the gnu make check as indicated in the web pages, but decided for some reason to keep the "test" target name. But when, I issuing a ADD_DEPENDENCIES(test XXX) cmake tells me that there is no dependency name

Re: [CMake] Help on how to handle the name of a object file?

2009-04-24 Thread Alexander Neundorf
On Friday 24 April 2009, zhang wrote: > The default format of the obj's name is like this *.c.obj or *.cpp.obj, > etc. > I want the source-file-type in the name got rid of. What can I do in > Cmake. > > I have no choice if some linkers like the Digitalmars's can't handle > these names with this for

Re: [CMake] cmakelists.txt for GraphicsMagick or ImageMagick

2009-04-24 Thread Miguel A. Figueroa-Villanueva
On Fri, Apr 24, 2009 at 6:14 AM, Boudewijn Rempt wrote: > Has anyone by any chance already done a CMakeLists.txt file for GraphicsMagick > or ImageMagick? I'd like to integrate either in the build of our application, > instead of relying on installed packages, but I'd hate to do duplicate work...

Re: [CMake] How to create preprocess-only file rule

2009-04-24 Thread Alexander Neundorf
On Friday 24 April 2009, Nikolay Mitev wrote: > Hi > > I'm trying to create a rule which will only run the C++ preprocessor on a > file, without compiling it. I know about the make file.i rule, but if > file.cpp is not a dependency of some target it does not get generated. > Setting header_file pro

[CMake] Help on how to handle the name of a object file?

2009-04-24 Thread zhang
The default format of the obj's name is like this *.c.obj or *.cpp.obj, etc. I want the source-file-type in the name got rid of. What can I do in Cmake. I have no choice if some linkers like the Digitalmars's can't handle these names with this format. Thanks for any help. -- ___

Re: [CMake] how to build two libraries from same sources but with different defines?

2009-04-24 Thread Denis Scherbakov
COMPILE_FLAGS in SET_TARGET_PROPERTIES will allow you to set per-target compile flags and definitions. Denis > I am building my library for two different processors arm7 > and arm9. > devkitArm requeres ARM7 or ARM9 macroses should be defined > when > building for any processor. I tried to wr

Re: [CMake] CPack - skipping licensing screen

2009-04-24 Thread Bill Hoffman
James Bigler wrote: On Fri, Apr 24, 2009 at 7:07 AM, Daniel Blezek wrote: Hi, I’m not sure if there is a CPack-specific mailing list, direct me if I’m wrong. I find the empty license screen a little annoying in the NSIS installer for windows. This occurs when you don’t specify a license

Re: [CMake] How to insert environment variable in INCLUDE_DIRECTORIES

2009-04-24 Thread Tyler Roscoe
On Fri, Apr 24, 2009 at 11:08:13AM -0500, Peterson, Isaac F. wrote: > I've tried all sorts of different combinations of slashes and quotes without > success. Bummer. You might look at the implementation of ${CMAKE_CFG_INTDIR} since it knows how to do something similar to what you want. You could

Re: [CMake] CPack - skipping licensing screen

2009-04-24 Thread James Bigler
On Fri, Apr 24, 2009 at 7:07 AM, Daniel Blezek wrote: > Hi, > >   I’m not sure if there is a CPack-specific mailing list, direct me if I’m > wrong. > >   I find the empty license screen a little annoying in the NSIS installer > for windows.  This occurs when you don’t specify a license file for yo

Re: [CMake] How to insert environment variable in INCLUDE_DIRECTORIES

2009-04-24 Thread Peterson, Isaac F.
I've tried all sorts of different combinations of slashes and quotes without success. Does anyone know how to tell cmake NOT to prepend the ..\..\ProjName in front of the INCLUDE_DIRECTORIES folder list? If I put C:/folder, it does not prepend the relative path. How does cmake decide which to

Re: [CMake] how to build two libraries from same sources but with different defines?

2009-04-24 Thread Richard Quirk
On Fri, Apr 24, 2009 at 5:42 PM, Igor Karatayev wrote: > Hello. > > I am building my library for two different processors arm7 and arm9. > devkitArm requeres ARM7 or ARM9 macroses should be defined when > building for any processor. I tried to write > > include_directories(./) > > set(SOURCES >  

[CMake] how to build two libraries from same sources but with different defines?

2009-04-24 Thread Igor Karatayev
Hello. I am building my library for two different processors arm7 and arm9. devkitArm requeres ARM7 or ARM9 macroses should be defined when building for any processor. I tried to write include_directories(./) set(SOURCES    src/library.cpp    )    add_definitions(-DARM7)    add_library(sandbox-

Re: [CMake] [Insight-users] ITK.dsw

2009-04-24 Thread John Drescher
On Fri, Apr 24, 2009 at 11:32 AM, mahshid farzinfar wrote: > > Visual Studio 2008. > After the configure step. Did you select generate? John ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/

Re: [CMake] swig: no rule to make target ***

2009-04-24 Thread Tyler Roscoe
On Fri, Apr 24, 2009 at 10:40:51AM +0200, Jonatan Bijl wrote: > #Generates a swig library. > > function(compile_directory_to_swig DIRECTORY_PATH) > > if(NOT SWIG_FOUND) > > find_package(SWIG REQUIRED) > > include(${SWIG_USE_FILE}) > > set(SWIG_CXX_EXTENSION "cpp") >

Re: [CMake] Set output path without additional Debug/Release at the end

2009-04-24 Thread Keith Gardner
Andreas, What you will have to do is for every target, set the property prefix to "../". There is no other way I have found to do this. Example: ADD_EXECUTABLE( ${PROJECT_NAME} ${SRCS} ) SET_TARGET_PROPERTIES( ${PROJECT_NAME} PROPERTIES PREFIX "../" ) Keith From: cmake-boun..

Re: [CMake] What does IMPLICIT_DEPENDS in add_custom_command actually do?

2009-04-24 Thread James Bigler
Ping On Thu, Apr 23, 2009 at 9:51 AM, James Bigler wrote: > What does IMPLICIT_DEPENDS in add_custom_command actually do? > > Why is it only available to Makefile generators? > > Thanks, > James > ___ Powered by www.kitware.com Visit other Kitware open

[CMake] CPack - skipping licensing screen

2009-04-24 Thread Daniel Blezek
Hi, I¹m not sure if there is a CPack-specific mailing list, direct me if I¹m wrong. I find the empty license screen a little annoying in the NSIS installer for windows. This occurs when you don¹t specify a license file for your installer. CPack generates one for you, but a better behavior w

Re: [CMake] Set output path without additional Debug/Release at the end

2009-04-24 Thread Luigi Calori
I use a hack like this: SET_TARGET_PROPERTIES( PROPERTIES RUNTIME_OUTPUT_DIRECTORY ) SET_TARGET_PROPERTIES( PROPERTIES LIBRARY_OUTPUT_DIRECTORY ) IF(MSVC_IDE) SET_TARGET_PROPERTIES( PROPERTIES PREFIX "../") or if you prefer SET_TARGET_PROPERTIES( PROPERTIES

[CMake] Set output path without additional Debug/Release at the end

2009-04-24 Thread Andreas
Dear CMake users, I would like to set the output path of my library to C:/name1/Debug/name2/ (debug configuration) and C:/name1/Release/name2/ (release configuration). If I use SET(LIBRARY_OUTPUT_PATH D:/name1/${CMAKE_CFG_INTDIR}/name2/) an additional Debug / Release is added at the en

[CMake] How to create preprocess-only file rule

2009-04-24 Thread Nikolay Mitev
Hi I'm trying to create a rule which will only run the C++ preprocessor on a file, without compiling it. I know about the make file.i rule, but if file.cpp is not a dependency of some target it does not get generated. Setting header_file property doesn't work either. Adding a custom rule works, bu

[CMake] cmakelists.txt for GraphicsMagick or ImageMagick

2009-04-24 Thread Boudewijn Rempt
Has anyone by any chance already done a CMakeLists.txt file for GraphicsMagick or ImageMagick? I'd like to integrate either in the build of our application, instead of relying on installed packages, but I'd hate to do duplicate work... Boudewijn ___ Po

Re: [CMake] [Patch] 7z cpack generator support

2009-04-24 Thread Ralf Habacker
Alexander Neundorf schrieb: On Tuesday 21 April 2009, Ralf Habacker wrote: Hi, for a specific cmake project on windows there was 7zip cpack support requested. The appended patch adds those support to cpack. It works like the zip generator with one extension: It is possible to run 7z with ad

[CMake] swig: no rule to make target ***

2009-04-24 Thread Jonatan Bijl
I'm trying to generate a java-c++ interface using swig. I use the following function to generate java and C++ wrappers using swig: #Generates a swig library. function(compile_directory_to_swig DIRECTORY_PATH) if(NOT SWIG_FOUND) find_package(SWIG REQUIRED) include(${SWIG_

Re: [CMake] Fwd: Generated file dependency

2009-04-24 Thread Nikolay Mitev
On Thu, Apr 23, 2009 at 6:50 PM, James Bigler wrote: > On Thu, Apr 23, 2009 at 9:39 AM, James Bigler wrote: > >> On Thu, Apr 23, 2009 at 6:50 AM, Nikolay Mitev wrote: >> >>> [posting to the list, since I accidentally replied only to Sergey] >>> On Thu, Apr 23, 2009 at 1:48 PM, Sergey Rudchenko <