[CMake] problem with include directories

William A. Hoffman billlist at nycap.rr.com
Mon Dec 13 09:36:22 EST 2004


Actually, adding the .h files as sources is OK, but it does not add
them to the -I path.  So you will need:

INCLUDE_DIRECTORIES(${SOURCE_DIR})

as well as having them listed as sources. 


-Bill

At 09:25 AM 12/13/2004, Leila baghdadi wrote:
>Hi Sergio,
>
>I think what you want to do ( at least that is what I did) is to only
>set .c or .cpp files as source and then use 
>
>INCLUDE_DIRECTORIES(dir1 dir2 ...)
>
>and just specify the directories with the header files,
>
>HTH
>
>Leila
>
>On Mon, 2004-12-13 at 07:08, Sergio Andrés wrote:
>> Hi all,
>> 
>> I have a problem with the include directories.
>> I have generated a project for MSVC 6.0 with CMake but the list of 
>> include dirs is incomplete.
>> 
>> I don't know if there is a limit for inlcude dirs or something like this..
>> 
>> My CMakeLists is attached to this email.
>> 
>> Thanks in advance.
>> 
>> Sergio.
>> 



More information about the CMake mailing list