Re: [CMake] Can FindBoost.cmake support STLport

2009-02-12 Thread Philip Lowman
On Wed, Feb 11, 2009 at 8:34 PM, unixcc wrote: > Today, I compiled two Boost libraries with following command: > > bjam --with-thread --with-date_time stdlib=stlport --build-type=complete > stage > > So, I got following libraries > > boost_date_time-vc80-mt-gdp-1_38.dll <...> > libboost_thread-

Re: [CMake] MSVC7.1 static link question

2009-02-12 Thread Philip Lowman
On Thu, Feb 12, 2009 at 11:43 AM, Luigi Calori wrote: > Philip Lowman ha scritto: > >>add_library(baz STATIC IMPORTED) >>set_target_properties(baz PROPERTIES >> IMPORTED_LOCATION_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/libbaz.a >> IMPORTED_LOCATION_DEBUG ${CMAKE_CURRENT_SOURCE_D

Re: [CMake] Separate the compiler used for compile versus link

2009-02-12 Thread Clinton Stimpson
On Thursday 12 February 2009 11:47:09 Bill O'Hara wrote: > Right now I have a legacy makefile which does the equivalent of > > gcc -c foo.c > g++ -o foo foo.o -lasdf -lqwer > > Because asdf and qwer are static libraries from c++ sources. > > Is there a straightforward way to do something like > > a

[CMake] Separate the compiler used for compile versus link

2009-02-12 Thread Bill O'Hara
Right now I have a legacy makefile which does the equivalent of gcc -c foo.c g++ -o foo foo.o -lasdf -lqwer Because asdf and qwer are static libraries from c++ sources. Is there a straightforward way to do something like add_executable(foo foo.c) target_link_libraries(foo asdf qwer) in this ca

Re: [CMake] MSVC7.1 static link question

2009-02-12 Thread Bill Hoffman
Luigi Calori wrote: Ok, understood, thanks a lot to everyone: I' ll try to look at IMPORT/EXPORT. Are there project examples available: It would really be nice to have CMake projects for libraries. I' m trying to build cmake projects for jpeg,tiff and png libs, as I' m working in VS7.1 and not

Re: [CMake] MSVC7.1 static link question

2009-02-12 Thread Luigi Calori
Bill Hoffman ha scritto: Luigi Calori wrote: I' ma bit confused, just to make clear: the proposed import method are used in the final projects that USES the libraries. by install(EXPORT) the needed code is hidden in a config--baz--cmake file that is evaluated inby the final project tha so do

Re: [CMake] Setting macro while compiling through cmake

2009-02-12 Thread Alexander Neundorf
On Thursday 12 February 2009, ankit jain wrote: > Hi all, > > If i want to compile through g++ as: > > g++ -Dname=value > > The same if i want to do with cmake how to do it. Whether i need to make > some entry in CMakeCache.txt or somewhere else? This is a lot of documentation available online, wh

Re: [CMake] MSVC7.1 static link question

2009-02-12 Thread Bill Hoffman
Luigi Calori wrote: I' ma bit confused, just to make clear: the proposed import method are used in the final projects that USES the libraries. by install(EXPORT) the needed code is hidden in a config--baz--cmake file that is evaluated inby the final project tha so does not have to rely on Fi

Re: [CMake] MSVC7.1 static link question

2009-02-12 Thread Luigi Calori
Philip Lowman ha scritto: On Wed, Feb 11, 2009 at 8:54 AM, Brad King > wrote: Philip Lowman wrote: On Tue, Feb 10, 2009 at 1:01 PM, Brad King mailto:brad.k...@kitware.com>CMake 2.6 makes it easy to export targets from one project (ei

[CMake] Fwd: Cmake macro and date

2009-02-12 Thread Eric Noulard
Fwd to the list -- Forwarded message -- From: Benoit RAT (Gmail) Date: 2009/2/12 Subject: Re: [CMake] Cmake macro and date To: Eric Noulard Okay it seems to be perl problem therefore I've decided to make the script directly calling system function: Here you have an exemple us

Re: [CMake] Cmake macro and date

2009-02-12 Thread Eric Noulard
2009/2/12 Benoit : > Hy, > > I want to retrieve today date in order to install various release each day. > I've created a script: GetDataTime.cmake > > In which I have defined this macro: > > INCLUDE(FindPerl) > MACRO (TODAY RESULT) > IF (PERL_FOUND) > EXECUTE_PROCESS(COMMAND "${PERL_EXECUTABLE

Re: [CMake] Setting macro while compiling through cmake

2009-02-12 Thread Mike Jackson
Add_definition(-Dname=value) in your cmakelists.txt file Mike Jackson Sent from my iPod On Feb 12, 2009, at 8:01, ankit jain wrote: Hi all, If i want to compile through g++ as: g++ -Dname=value The same if i want to do with cmake how to do it. Whether i need to make some entry in CMake

Re: [CMake] Setting macro while compiling through cmake

2009-02-12 Thread Sergey Rudchenko
ankit jain wrote: Hi all, If i want to compile through g++ as: g++ -Dname=value The same if i want to do with cmake how to do it. Whether i need to make some entry in CMakeCache.txt or somewhere else? Ankit See ADD_DEFINITIONS in the CMake manual. -- Best regards, Sergey Rudchenko ___

[CMake] Setting macro while compiling through cmake

2009-02-12 Thread ankit jain
Hi all, If i want to compile through g++ as: g++ -Dname=value The same if i want to do with cmake how to do it. Whether i need to make some entry in CMakeCache.txt or somewhere else? Ankit ___ Powered by www.kitware.com Visit other Kitware open-sourc

[CMake] Cmake macro and date

2009-02-12 Thread Benoit
Hy, I want to retrieve today date in order to install various release each day. I've created a script: GetDataTime.cmake In which I have defined this macro: INCLUDE(FindPerl) MACRO (TODAY RESULT) IF (PERL_FOUND) EXECUTE_PROCESS(COMMAND "${PERL_EXECUTABLE}" "-E '($sec,$min,$hour,$mday,$mon,$y

Re: [CMake] MSVC7.1 static link question

2009-02-12 Thread Micha Renner
> I do not plan to allow target_link_libraries for this. One must use > IMPORTED_LINK_INTERFACE_LIBRARIES. However, it is easier than your > example makes it because the property can name other imported targets: > > add_library(baz STATIC IMPORTED) > set_target_properties(baz PROPERTIES > I

Re: [CMake] MSVC7.1 static link question

2009-02-12 Thread Philip Lowman
On Wed, Feb 11, 2009 at 8:54 AM, Brad King wrote: > Philip Lowman wrote: > >> On Tue, Feb 10, 2009 at 1:01 PM, Brad King > CMake 2.6 makes it easy to export targets from one project (either its >>build tree or install tree) for use by another project. >> >> Is this the easiest way to registe