Re: [CMake] Efficient linking to libraries(static and dynamic)

2009-02-10 Thread Andreas Pakulat
On 11.02.09 11:31:18, ankit jain wrote: > Hi all, > > I have folder f1 having csome cpp files. structure is like this: > f1 > c1.cpp > c2.cpp > > now i create an executable for it as > add_executable(myexe c1.cpp c2.cpp) > > the path of f1 folder is /home/ankit/mycode/f1 > now i want to

Re: [CMake] "unit" testing your CMakeLists.txt

2009-02-10 Thread Philip Lowman
On Wed, Feb 11, 2009 at 1:03 AM, Tyler Roscoe wrote: > Bumping this one time. Any thoughts? Is there a better place to ask this > sort of question? Sorry, my eyes glazed over the first time I read this sentence and I think I was pretty tired so not knowing what these acronyms went I think I jus

Re: [CMake] Fwd: MSVC7.1 static link question

2009-02-10 Thread Philip Lowman
On Wed, Feb 11, 2009 at 12:15 AM, ankit jain wrote: > > If our library which we want to link is not in the curre tn project and >> we linkan executable to it through target_link_libraries by giving it entire >> path like /another/project/lib, will it not work properly. >> > It should work proper

Re: [CMake] MSVC7.1 static link question

2009-02-10 Thread Philip Lowman
On Tue, Feb 10, 2009 at 1:01 PM, Brad King wrote: > Bill's example will not work as written. The target_link_libraries command > does not work for imported targets. See IMPORTED target and general > packaging documentation here: > > http://www.cmake.org/Wiki/CMake_2.6_Notes#Exporting_and_Impor

Re: [CMake] "unit" testing your CMakeLists.txt

2009-02-10 Thread Tyler Roscoe
Bumping this one time. Any thoughts? Is there a better place to ask this sort of question? Thanks, tyler On Mon, Feb 09, 2009 at 12:15:33PM -0800, Tyler Roscoe wrote: > My company is adopting Test-Driven Development. I am wondering if any of > you build engineers in a similar position have given

[CMake] Efficient linking to libraries(static and dynamic)

2009-02-10 Thread ankit jain
Hi all, I have folder f1 having csome cpp files. structure is like this: f1 c1.cpp c2.cpp now i create an executable for it as add_executable(myexe c1.cpp c2.cpp) the path of f1 folder is /home/ankit/mycode/f1 now i want to link myexe to a library lib.so and lib1.a which are not in this

[CMake] Fwd: MSVC7.1 static link question

2009-02-10 Thread ankit jain
-- Forwarded message -- From: ankit jain Date: 2009/2/11 Subject: Re: [CMake] MSVC7.1 static link question To: Brad King 2009/2/10 Brad King Luigi Calori wrote: > >> Bill Hoffman ha scritto: >> >>> Philip Lowman wrote: >>> On Mon, Feb 9, 2009 at 12:39 PM, Luigi Calori

Re: [CMake] MSVC7.1 static link question

2009-02-10 Thread Brad King
Luigi Calori wrote: Bill Hoffman ha scritto: Philip Lowman wrote: On Mon, Feb 9, 2009 at 12:39 PM, Luigi Calori > wrote: I' m quite a newbie in static linking, I would like to combine two lib into one: say libtiff needs libjpeg and zlib If you gener

Re: [CMake] Choose Python version on OS X

2009-02-10 Thread Robert Haines
What is the best way to have my own Python version detected? What is the rule cmake uses to choose the Python installation to use? What I do is that I have the python_select package installed and then / opt/local/bin in my path before /usr/bin. Then you can select which python you want with

Re: [CMake] MSVC7.1 static link question

2009-02-10 Thread Luigi Calori
Bill Hoffman ha scritto: Philip Lowman wrote: On Mon, Feb 9, 2009 at 12:39 PM, Luigi Calori > wrote: I' m quite a newbie in static linking, I would like to combine two lib into one: say libtiff needs libjpeg and zlib If you generate them separately,

[CMake] Choose Python version on OS X

2009-02-10 Thread Enrico Franchi
I've got Python 2.6 installed with MacPorts (MacOS X 10.5), thus the framework is in /opt/local/Library/Frameworks. CMake always finds system Python (FIND_PACKAGE(PythonLibs)). I have already tried hacking CMakeFindFrameworks in order to add /opt/ local/Library/Framework to the searched paths.

Re: [CMake] MSVC7.1 static link question

2009-02-10 Thread Bill Hoffman
Philip Lowman wrote: On Mon, Feb 9, 2009 at 12:39 PM, Luigi Calori > wrote: I' m quite a newbie in static linking, I would like to combine two lib into one: say libtiff needs libjpeg and zlib If you generate them separately, then when you build an execu

Re: [CMake] Compiling Matlab M files

2009-02-10 Thread elizabeta petreska
Ok I think I found solution maybe the answer is to use ADD_CUSTOM_COMMAND with DEPENDS On Tue, Feb 10, 2009 at 12:51 PM, elizabeta petreska < elizabeta.petre...@gmail.com> wrote: > Hello > My problem is this : > > I am having a set of matlab M files which need to be compiled with Matlab > compile

Re: [CMake] set/unset

2009-02-10 Thread Philip Lowman
On Tue, Feb 10, 2009 at 3:35 AM, Micha Renner wrote: > Hallo, > > what is the difference between > SET(variable ) > and > UNSET(variable) Nothing. The unset command was added for completeness and so that there could be an additional option added to it to allow removal of cache variables. Also,

[CMake] Compiling Matlab M files

2009-02-10 Thread elizabeta petreska
Hello My problem is this : I am having a set of matlab M files which need to be compiled with Matlab compiler mcc.exe. And I have separate directory for my matlab files which looks like this: -MM --m files dummy.cpp cmakelists.txt the cmakelists.txt inside the directory: ADD_LIBRARY(MM

[CMake] set/unset

2009-02-10 Thread Micha Renner
Hallo, what is the difference between SET(variable ) and UNSET(variable) Michael ___ 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 th