Re: [CMake] Linking object file with executable

2009-05-20 Thread Dmytro Ovdiienko
Ankit, You have to explain CMake how to handle "*.obj" files. Find emails how to add ASM support. They should help you. Regards. Dima 2009/5/20 ankit jain > > > 2009/5/20 Dmytro Ovdiienko > >> Hi Ankit. >> >> >> Did you try TARGET_LINK_LIBRARIES? >> >> TARGET_LINK_LIBRARIES( myexe ${myobj}

Re: [CMake] Linking object file with executable

2009-05-20 Thread ankit jain
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 jain > >> Hi all, >> >> My Cmakel

Re: [CMake] Linking object file with executable

2009-05-20 Thread Dmytro Ovdiienko
Hi Ankit. Did you try TARGET_LINK_LIBRARIES? TARGET_LINK_LIBRARIES( myexe ${myobj} ) 2009/5/19 ankit jain > Hi all, > > My Cmakelists contains: > > set(myobj ${CMAKE_CURRENT_SOURCE_DIR}/../objfolder/myfile.obj) > add_executable(myexe main.c ${myobj}) > > This myfile.obj object file is gener

Re: [CMake] Linking object file with executable

2009-05-19 Thread Tyler Roscoe
On Tue, May 19, 2009 at 05:38:15PM +0530, ankit jain wrote: > add_executable(myexe main.c ${myobj}) > > main.obj: warning: earlier declaration of a function f1() found in > myfile.obj: second definition ignored.. > > This means it is taking the f1() function from myfile.obj but i want f1() > fun

[CMake] Linking object file with executable

2009-05-19 Thread ankit jain
Hi all, My Cmakelists contains: set(myobj ${CMAKE_CURRENT_SOURCE_DIR}/../objfolder/myfile.obj) add_executable(myexe main.c ${myobj}) This myfile.obj object file is generated while building objfolder before creating this executable Now on building this executable i got a warning: main.obj: wa