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}
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
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
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
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