[CMake] How to add CMake includes and libraries to Visual Studio Solution?

John Drescher drescherjm at gmail.com
Mon Jan 16 13:21:46 EST 2012


On Mon, Jan 16, 2012 at 1:15 PM, J Decker <d3ck0r at gmail.com> wrote:
> On Mon, Jan 16, 2012 at 10:08 AM, Rolf Eike Beer <eike at sf-mail.de> wrote:
>> J Decker wrote:
>>> I just use
>>> include_directories( ... )
>>
>> This is right.
>>
>>> LINK_DIRECTORIES( ...} )
>>
>> This is almost surely wrong. LINK_DIRECTORIES is only needed for very seldom
>> special cases and only causes headache in all other cases.
>
> oh, what's the preferred method to specify the directory where the
> library is then?
>

I believe the full path on the target_link_libraries.

John


More information about the CMake mailing list