[CMake] How to add CMake includes and libraries to Visual Studio Solution?
hellhound at binary-revolution.org
hellhound at binary-revolution.org
Mon Jan 16 15:25:01 EST 2012
Thanks for support. Anything is working fine as described by you.
I've only checked the wrong solution folders ...
----- Original Message -----
From: eike at sf-mail.de
To: cmake at cmake.org
Date: 16.01.2012 21:01:37
Subject: Re: [CMake] How to add CMake includes and libraries to Visual Studio Solution?
> hellhound at binary-revolution.org wrote:
>> Hmm this is strange, INCLUDE_DIRECTORIES is used but no effect.
>> I try to set:
>>
>> INCLUDE_DIRECTORIES("C:/binrev/development/boost/1.47/")
>
> Should be INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}), no? We have such a shiny
> FindBoost.cmake that does all the work for you ;)
Yes it should be and it is, this was only for simple test...
>> But the additional directory entry of my MSVC solution holds only
>> the default settings:
>>
>> $(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include
>> ;$(FrameworkSDKDir)\include;
>>
>> Is there any chance that i could check if INCLUDE_DIRECORIES is
>> set correctly by CMake? Maybe the settings are truncated by visual
>> studio ..
>
> You need to use INCLUDE_DIRECTORIES() before doing the ADD_SUBDIRECTORY(),
> ADD_EXECUTABLE(), or ADD_LIBRARY() that should use it.
>
> Eike--
>
> 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/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list