I use CMake to generate a Visual Studio 2010 project and solution file.
Actually I could set different settings, like warning level, incremental
building flag ect. from CMake. But I can't set additional includes and
libraries, listed in the VC++ Directory configuration tab.
For GCC projects
I just use
include_directories( ... )
LINK_DIRECTORIES( ...} )
which works fine for specifying additional directories for that
project and all sub projects included.
On Mon, Jan 16, 2012 at 7:24 AM, hellho...@binary-revolution.org wrote:
I use CMake to generate a Visual Studio 2010 project and
to add CMake includes and libraries to Visual Studio
Solution?
I just use
include_directories( ... )
LINK_DIRECTORIES( ...} )
which works fine for specifying additional directories for that
project and all sub projects included.
On Mon, Jan 16, 2012 at 7:24 AM, hellho...@binary
Where did you define your INCLUDE_DIRECTORIES? I also tried to set an absolute
path instead of using the CMake list, same result. Nothing is set...
For me this works as well. Define INCLUDE_DIRECTORIES anywhere above
the ADD_EXECUTABLE or ADD_LIBRARY and visual studio will use it.
--
John M.
to add CMake includes and libraries to Visual Studio
Solution?
On Mon, Jan 16, 2012 at 10:08 AM, Rolf Eike Beer e...@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
On Mon, Jan 16, 2012 at 2:44 PM, hellho...@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/)
But the additional directory entry of my MSVC solution holds only
the default
Thanks for support. Anything is working fine as described by you.
I've only checked the wrong solution folders ...
- Original Message -
From: e...@sf-mail.de
To: cmake@cmake.org
Date: 16.01.2012 21:01:37
Subject: Re: [CMake] How to add CMake includes and libraries to Visual Studio
On Mon, Jan 16, 2012 at 10:21 AM, John Drescher dresche...@gmail.com wrote:
On Mon, Jan 16, 2012 at 1:15 PM, J Decker d3c...@gmail.com wrote:
On Mon, Jan 16, 2012 at 10:08 AM, Rolf Eike Beer e...@sf-mail.de wrote:
J Decker wrote:
I just use
include_directories( ... )
This is right.
On 16.01.12 21:03:20, J Decker wrote:
On Mon, Jan 16, 2012 at 10:21 AM, John Drescher dresche...@gmail.com wrote:
On Mon, Jan 16, 2012 at 1:15 PM, J Decker d3c...@gmail.com wrote:
On Mon, Jan 16, 2012 at 10:08 AM, Rolf Eike Beer e...@sf-mail.de wrote:
J Decker wrote:
I just use