[CMake] Fwd: Is it necessary to link a executable file?

Eric Noulard eric.noulard at gmail.com
Wed Feb 4 05:14:01 EST 2009


2009/2/4 ankit jain <ankitguddu at gmail.com>:
>>
>> 2009/2/4 ankit jain <ankitguddu at gmail.com>:
>>
>> > Actually in this case i dont want to create libraries thats why iam
>> > wondering whether making only executable is permissble or not?
>>
>> If you use
>> ADD_EXECUTABLE
>>
>> it should work just fine.
>> --
>> Erk
>
> I am using that only but it gives error because it goea to the folder
> /usr/lib and try to link it with some .o file.

As already told by others here you should give us
more precise informations about your problem. At least,

- the CMakeLists.txt you are using or the portion which seems to lead
to an error.
- the verbatim copy of the error you are observing.

without that we may not help you.

-- 
Erk


More information about the CMake mailing list