do..
Is there any option in cmake while creating library which allows compiling a
file but not linking it in library.
Regards-
Ankit Jain
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource
2009/5/20 Dmytro Ovdiienko
> Hi Ankit.
>
>
> Did you try TARGET_LINK_LIBRARIES?
>
> TARGET_LINK_LIBRARIES( myexe ${myobj} )
It gives error as myfile.obj.lib not found..
Since it is not library it is not valid to give like this...
Ankit
>
>
> 2009/5/19 ankit
() from main.c): second def. ignored
Regards-
Ankit Jain
___
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 the CMake FAQ at:
http
2009/5/16 Hendrik Sattler
> Am Freitag 15 Mai 2009 17:05:58 schrieb ankit jain:
> [...]
>
> The following works with VS2008 without any problem as expected:
> CMakeLists.txt:
> --
> project(var C)
> add_executa
2009/5/15
> ankit jain wrote:
>
> > My source tree structure is:
> > Main_folder
> >.. Ident.c
> >..folder1
> >f11.c
> >f12.c
> > [...]
> >
> > Now I am able to get all the source files from all the folders. but
> th
-- Forwarded message --
From: ankit jain
Date: 2009/5/15
Subject: Re: [CMake] unable to include a source file for all sub directories
To: Hendrik Sattler
2009/5/15 Hendrik Sattler
> Zitat von ankit jain :
>
>> Now all files iam getting from folder1 and folder2
2009/5/15 Hendrik Sattler
> Zitat von ankit jain :
>
>> Linker error for many objects files that have created
>>
>
> So either the object file that contains the symbol is not part of your link
> command or you have a coding error.
> Since you release neither an e
-- Forwarded message --
From: ankit jain
Date: 2009/5/15
Subject: Re: [CMake] unable to include a source file for all sub directories
To: Hendrik Sattler
2009/5/15 Hendrik Sattler
> Zitat von ankit jain :
>
>> If suppose 5 files are there in one folder and ea
-- Forwarded message --
From: ankit jain
Date: 2009/5/15
Subject: Re: [CMake] unable to include a source file for all sub directories
To: Hendrik Sattler
2009/5/15 Hendrik Sattler
Zitat von ankit jain :
>
>> Now I am able to get all the source files from all th
tree structure...
Regards-
Ankit Jain
___
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 the CMake FAQ at:
http://www.cmake.org/Wiki
-- Forwarded message --
From: ankit jain
Date: 2009/5/14
Subject: Settings different compile options for diff. files in same folder..
To: cmake@cmake.org
Hi all,
I have a folder in which there are 5 files
folder
a1.c
a2.c
a3.c
a4.c
a5.c
Out of these from 4th and 5th
clarification required please let me know..
Regards-
ankit jain
___
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 the CMake FAQ at:
http
ne..
ankit
>
>
> On Tue, May 5, 2009 at 8:29 AM, ankit jain wrote:
>
>> Hi all,
>>
>> I build me code without cmake through mks on windows... it is successful..
>> Now i want to build my code through cmake on mks for windows. The project
>> is compiling but
ggled a lot with VC++ for building code thorugh cmake.
My code is configured properly but on running it gives lots of error...
Any help in this regard really helps me a lot..
Regards-
Ankit Jain
___
Powered by www.kitware.com
Visit other Kitware
2009/5/4 Andreas Pakulat
> On 04.05.09 17:28:48, ankit jain wrote:
> > Hi all,
> >
> > Actually I am porting my code on windows but since windows don't
> understand
> > the unix libraries iam using third party toolkit mks earlier to build the
> > code and
olkit rather its default cl compiler...
why changing cmake variable doesnot have any effect on it that i mentioned
above for compiler...
Regards-
Ankit Jain
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitwar
since i define macro for windows as NUTC for mks..
So please guide how to proceed..
Any help in this regard really helps me a lot...
Regards-
Ankit Jain
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com
2009/4/28 Bill Hoffman
> Denis Scherbakov wrote:
>
>> HP-UX on PA-RISC uses *.sl or no extension (like libC.2 for PA-RISC 2.0)
>> HP-UX on IA64 uses *.so naming like in Linux.
>>
>>
> http://www.mainsoft.com/solutions/windows_to_hpipf.aspx
>
> "> Shared library naming convention
>
>>
>> The share
PA_RISC cmake binaries how to get .so extension for my shared libraries
Regards-
ankit jain
___
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
Hi all,
I want to remove certain files when i do make clean.These files are
generated while running tests.
how to achieve it..
if i dont do that the files which once generated remains there...
on make clean only object files will remove automatically nothing is needed
to do from our side.
but apar
t...
Ankit
>
>
> --- On Wed, 3/25/09, ankit jain wrote:
>
> > From: ankit jain
> > Subject: [CMake] Argument passing to shell script through cmake
> > To: cmake@cmake.org
> > Date: Wednesday, March 25, 2009, 5:54 AM
> > Hi all,
> >
> > I want
Hi all,
my project contain c cpp and java files. I have used this line in my main
CMakelists file
add_definitions(-Wno-deprecated)
But when it comes to java folder where java files are there it creates
problem said unreconized option with javac.
Can i do something for it. Acc. to me if stmt will
Hi all,
I want to run one shell script which requires some arguments to pass in
cmakelists file.
Simply using install command to run it does not allow to pass arguments to
it.
How to do it
ankit
___
Powered by www.kitware.com
Visit other Kitware
2009/3/25 Robert Haines
> I have seen that only including the directories where jars exist wil not
>> solve the puprose of using those jars. we have to either extract the files
>> from it or either include the directories where the file exists from which
>> jars have been made.
>>
>
> Have you a
Hi all,,
I have seen that only including the directories where jars exist wil not
solve the puprose of using those jars. we have to either extract the files
from it or either include the directories where the file exists from which
jars have been made.
If we give that path then what is the need o
2009/3/25 Michael Wild
>
> On 25. Mar, 2009, at 9:33, ankit jain wrote:
>
> 2009/3/25 Michael Wild
>>
>
> [...]
>
>
>>> What I usually do is this:
>>>
>>> add_custom_command( OUTPUT ${TARDIR}/t1
>>> COMMAND ${CMAKE_COMM
2009/3/25 Michael Wild
>
> On 25. Mar, 2009, at 7:51, ankit jain wrote:
>
> 2009/3/25 Alexander Neundorf
>>
>> On Tuesday 24 March 2009, ankit jain wrote:
>>>
>>>> hi all,
>>>>
>>>> Iam doing the following through my cmakel
2009/3/25 Alexander Neundorf
> On Tuesday 24 March 2009, ankit jain wrote:
> > hi all,
> >
> > Iam doing the following through my cmakelist.txt
> >
> > add_custom_target(mytarget)
> > add_custom_command(TARGET mytarget POST_BUILD
> > COMMAND ${CMAKE_C
hi all,
Iam doing the following through my cmakelist.txt
add_custom_target(mytarget)
add_custom_command(TARGET mytarget POST_BUILD
COMMAND ${CMAKE_COMMAND} -E tar xvf ${CMAKE_CURRENT_SOURCE_DIR}/t1.tar)
this cmakelist is written in subfolder of a mainfolder..
But the problem is that files are no
2009/3/20 Robert Haines
> I am creating a library through add_library command of java files.
>> Now i want to link it with some jar files which contain some classes which
>> is needed to build that library.
>>
>> target_link_libraries is not working in this case.
>>
>
> As far as I can tell you
2009/3/20 Andreas Pokorny
> Hello,
>
> 2009/3/20 ankit jain :
> > Hi all,
> >
> > I am creating a library through add_library command of java files.
> > Now i want to link it with some jar files which contain some classes
> which
Hi all,
I am creating a library through add_library command of java files.
Now i want to link it with some jar files which contain some classes which
is needed to build that library.
target_link_libraries is not working in this case.
How to do it?..
Ankit
__
- during development
> I often use the message command (printf debugging), i.e.
> message("MYVAR ${MYVAR}")
>
> cheers
> Mattias
>
> No problem. Thanks anyways for the support
>
Ankit
>
> On 3/20/09, ankit jain wrote:
> > 2009/3/20 Mattias Helsing
Hi all,
Can anybody tellme where i can find cmake docs that describe about various
command and other things for building the java files. it seems that for java
compiler flags and other command are diff. as we have for c and cpp files. i
wan tcomplete inf. related to it.
Ankit
___
t work.
Check this link:
http://www.mail-archive.com/cmake@cmake.org/msg16764.html
Iam not getting whatever given in this link. How to use it i dont know.
Ankit
>
> Mattias
>
>
> On 3/20/09, ankit jain wrote:
> > Hi all,
> >
> > I have a folder "mainfolder&qu
Hi all,
I have a folder "mainfolder" with sufolder "innerfolder" which has soem java
files. i want to create it class files. for that iam using add_sutom_command
to run the javac command but still my class files are not generated.
The content of cmakelist of mainfolder is:
project(mainfolder)
cma
example to me.
Regards-
Ankit Jain
___
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 the CMake FAQ at:
http://www.cmake.org/Wiki
y. Could you check this?
>
> Mattias
>
> Thanks Mattias. There was problem with LD_LIBRARY_PATH only.
>
Thanks for all your support and interest in my query.
Ankit
>
> On 3/16/09, ankit jain wrote:
> > 2009/3/16 Mattias Helsing
> >
> >> Hello Anki
t;
> in file CMakeLists.txt
> set(TARGET_NAME )
> configure_file(shscript.sh.in ${PROJECT_BINARY_DIR}/bin/shscript.sh)
>
> not at all the prettiest solution and I'm not really sure why you want
> to do this but good luck
> Mattias
>
> On 3/13/09, ankit jain wro
2009/3/13 Mattias Helsing
> Hello Ankit,
>
> On 3/13/09, ankit jain wrote:
> > Hi all,
> >
> > I have a shell script. I want to link it with a library that i have build
> > using cmake. Is it possible to do so.
> > I am running this shell script using c
2009/3/10 Sharon Melamed
> Hi,
>
>
>
> My main CmakeList.txt file look like this:
>
>
>
> cmake_minimum_required (VERSION 2.6)
>
> project (vos)
>
Same thing happens to me also. The problem is of RPATH settings. the path
your cmakelist links to while installing is not set for the sub directorie
Hi all,
I have a shell script. I want to link it with a library that i have build
using cmake. Is it possible to do so.
I am running this shell script using cmake.
If possible plz let me show an example.
Ankit
___
Powered by www.kitware.com
Visit oth
2009/3/10 Sharon Melamed
> Hi,
>
>
>
> My main CmakeList.txt file look like this:
>
>
>
> cmake_minimum_required (VERSION 2.6)
>
> project (vos)
>
>
>
> add_subdirectory (system BUILD)
>
> add_subdirectory (osal BUILD)
>
> add_subdirectory (logger BUILD)
>
> add_subdirectory (loggerConfigTool B
-- Forwarded message --
From: ankit jain
Date: 2009/3/10
Subject: Re: [CMake] install question
To: Sharon Melamed
2009/3/10 Sharon Melamed
>Hi,
>
>
>
> My main CmakeList.txt file look like this:
>
>
>
> cmake_minimum_required (VE
)
#i.e some other path
This thing actually does work with my case. iam using "make test".
If iam doing soemthing wrong please let me know or if this thing is in
progress of development kindly let me know the alternative that can be done
for achieving this thing.
Regards-
2009/2/17 Philip Lowman
> On Mon, Feb 16, 2009 at 11:03 PM, ankit jain wrote:
>
>>
>>
>> -- Forwarded message --
>> From: ankit jain
>> Date: 2009/2/17
>> Subject: Re: [CMake] setting environment variable through cmake
>> To:
Hi ,
I have defined a variable for a set of libraries that i want to link with
some executables.
But with one executble i dont want to use one of the library from the set of
libraries.
Can i unlink that particular library for this executable since iam using a
variable for all those libraries.
E
Hi,
I want to generate a shell script which should be executable through three
files.
first file has some macros with other functions and other code.
Second and third file haev definitions fot he macro the functions.
Can i generate a shell script from all this.
Ankit
___
Hi all,
I have an executable having some test cases. I want to give some arguments
to it which i will give it through add_test command. but my objective is to
write the output of the executable to a file at run tiem itself.
How to do that?
Secondly i want ot use this file in which output of exe
Hi all,
I have a directory structure with follwoign cmakelist as:
myfold
Cmakelist.txt
subfolder
subfolder
Cmakelists.txt
myfile.cpp
Contents of Cmakelist of subfolder:
add_executable(myfile myfile.cpp)
target_link_libraries(myfile mylib)
add_test(t1 myfile)
t1 is the test cas
Hi all,
Actually my test cases are written in C files. os iam creating executable
for that nad directly run the executbale through make.
Is it necessary to do it like "make test"?
If iam not doing is it iam missing something.
Apart form them i have some of my test cases defined in .tsh files w
-- Forwarded message --
From: ankit jain
Date: 2009/2/17
Subject: Re: [CMake] setting environment variable through cmake
To: Philip Lowman
2009/2/17 Philip Lowman
On Mon, Feb 16, 2009 at 7:46 AM, ankit jain wrote:
>
>> Hi all,
>>
>> I want to set an en
Hi all,
I want to set an enviromnet varibale but not able to do it.
Currently iam using the command:
SET( ENV{varname} value )
But it is not working.
Can anybody guide me how to do it by giving an example.
Ankit
___
Powered by www.kitware.com
Visit o
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
-- Forwarded message --
From: ankit jain
Date: 2009/2/12
Subject: Problem with PARENT_SCOPE
To: cmake@cmake.org
Hi all,
Actually i am usinf PARENT_SCOPE property but facing some problem.
the directory structure i have is like this
f1
...f2
.f3 (inside f2)
i.e f1 has
Hi all,
Actually i am usinf PARENT_SCOPE property but facing some problem.
the directory structure i have is like this
f1
...f2
.f3 (inside f2)
i.e f1 has f2 folder and f2 has f3
in f3 i have demo.cpp file
i set a variable for this file as set(myvar demo.cpp)
Also i did set(myvar1 ${my
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
-- 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:
>>>
>>&g
Hi,
Actually iam linking an excutable to the libraries which is not in the
curretn project meanas they are in other folder outside it.
i am linking it using target link libraries by giving the entire path of the
libraries but still it shows error .
if I am missing something please tell me what el
2009/2/4 Eric Noulard
> 2009/2/4 ankit jain :
> >
> > The CMakeLists iam using contains:
> >
> > PROJECT(hello)
> >
> > ADD_EXECUTABLE(hello h1.C)
> >
> > Error iam getting is:
> >
> > Linking CXX executable hello
> > /us
-- Forwarded message --
From: ankit jain
Date: 2009/2/4
Subject: Re: [CMake] Fwd: Is it necessary to link a executable file?
To: Eric Noulard
2009/2/4 Eric Noulard
2009/2/4 ankit jain :
> >>
> >> 2009/2/4 ankit jain :
> >>
> >> > Actu
-- Forwarded message --
From: ankit jain
Date: 2009/2/4
Subject: Re: [CMake] Is it necessary to link a executable file?
To: Eric Noulard
2009/2/4 Eric Noulard
2009/2/4 ankit jain :
>
> > Actually in this case i dont want to create libraries thats why iam
>
2009/2/4 ankit jain
> Hi all,
>
> I have created executable file from C files. is it necessary to link them
> to some directories. if dont want to do so is ther any problem? Can i do
> that?
>
> Actually since iam not linking it with any library iam facing a problem.
> b
Hi all,
I have created executable file from C files. is it necessary to link them to
some directories. if dont want to do so is ther any problem? Can i do that?
Actually since iam not linking it with any library iam facing a problem. but
if i create a library of those files or linking them to any
2009/2/3 Philip Lowman
> On Mon, Feb 2, 2009 at 11:31 PM, ankit jain wrote:
>
>>
>>
>> -- Forwarded message --
>> From: ankit jain
>> Date: 2009/2/2
>> Subject: Re: [CMake] equivalent cmakelist for this file
>> To: Bil
2009/2/3 Philip Lowman
> On Mon, Feb 2, 2009 at 11:31 PM, ankit jain wrote:
>
>>
>>
>> -- Forwarded message --
>> From: ankit jain
>> Date: 2009/2/2
>> Subject: Re: [CMake] equivalent cmakelist for this file
>> To: Bil
-- Forwarded message --
From: ankit jain
Date: 2009/2/2
Subject: Re: [CMake] equivalent cmakelist for this file
To: Bill Hoffman
2009/2/2 Bill Hoffman
ankit jain wrote:
>
>> The objective here to include all the .desc files in the cmakelist and
>> when we ma
Hi all,
Can't we include our source files other than C or Cpp in cmakelists file. if
yes then if we want to execute those files when we do make then for that
what to write in CMakelists file as we write add_library command which we
want to do when make will run in some cases.
AJ
_
files.
AJ
2009/2/2 ankit jain
> Actually my motive is to run executable that are executed through .desc
> file. so how to write a cmakelist file for that.
>
>
> AJ
>
> 2009/2/2 Hendrik Sattler
>
>> ankit jain schrieb:
>>
>> > Then what to do. I
Actually my motive is to run executable that are executed through .desc
file. so how to write a cmakelist file for that.
AJ
2009/2/2 Hendrik Sattler
> ankit jain schrieb:
> > Then what to do. Is something can be done using Ctest.
>
> We cannot guess what's in those file
Then what to do. Is something can be done using Ctest.
ankit
2009/2/2 Hendrik Sattler
> ankit jain schrieb:
> > Can anybody tell me what should be the equivalent cmakelists file
> should for
> > this makefile.
> >
> > Makefile:
> >
> > include Make.bo
a.desc:
$exec_string = "./a";
Similarly for all desc files.
I am not able to write a equivalent cmake file for this so that exact output
will be produced as on making the simple makefile does.
Regards-
ankit jain
___
CMake mailing list
CMake
hi all,
How can we specify the path of header fiels at run time through cmake since
i have a line in my C file as #include "%h"
Regards-
ankit jain
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Thanks for all the help its working.
Regards-
ankit jain
2009/1/30 Philip Lowman
> On Thu, Jan 29, 2009 at 11:38 PM, ankit jain wrote:
>
>>
>>
>> 2009/1/29 Pau Garcia i Quiles
>>
>>> On Thu, Jan 29, 2009 at 1:12 PM, ankit jain
>>> wrote:
>
2009/1/29 Pau Garcia i Quiles
> On Thu, Jan 29, 2009 at 1:12 PM, ankit jain wrote:
> > hi all,
> >
> > Problem:
> >
> > libA : A/foo.cc
> > libB : B/bar.cc
> > and a 3rd library:
> > libC : A/foo.cc B/bar.cc
> > ?
> >
> > h
hi all,
Problem:
libA : A/foo.cc
libB : B/bar.cc
and a 3rd library:
libC : A/foo.cc B/bar.cc
?
here i build the libraries for A and B but not able to build lib for C .
Guide me to do that. What should be the content of cmakelist file of C to
create lib C
here A and B are sub folders of C
Rega
2009/1/29 Philip Lowman
> On Wed, Jan 28, 2009 at 11:49 PM, ankit jain wrote:
>
>> Hi philip,
>> Thanks for showing interest my query.
>>
>> Actually i have a folder name myapp. it has two sub folders sub1 and sub2
>> only.
>> these folders have som
2009/1/29 Philip Lowman
> On Wed, Jan 28, 2009 at 11:49 PM, ankit jain wrote:
>
>> Hi philip,
>> Thanks for showing interest my query.
>>
>> Actually i have a folder name myapp. it has two sub folders sub1 and sub2
>> only.
>> these folders have som
. it still give
error on compiling that %h: no such file or directory found.
I am not able to understand how to remove it through cmake.
regards-
ankit jain
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
hi all,
in one of my folder i have three files. in each of them a main() function is
defined. now on building it says that multiple declaration of main. if i
compile the makefile using gcc only no such error had came.
Guide me what to do?
Regards-
ankit jain
library to be build for the fodlers for which the separate libraries are
already build.
Please guide me how to do that.
Regards-
ankit jain
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
81 matches
Mail list logo