[CMake] ADD_SUBDIRECTORY error

Xavier Larrode Xavier.Larrode at irisa.fr
Fri Jul 28 08:54:11 EDT 2006


Hi Filipe
Filipe Sousa a écrit :
>>
>>
>> And i got a problem with the INCLUDE_DIRECTORIES and this error message :
>> ADD_SUBDIRECTORY A full source directory was specified that is not in 
>> the source tree but no binary directory was specified. If you specify an 
>> out of tree source directory then you must provide the binary directory 
>> as well.
>>
>> Any idea how to do it ?
>>
>> And actually, i'm trying to compile a library, so i had "-elf -shared"  
>> to the LINK_FLAGS but i don't know if it's the right solution...
>>
>> Thanks .
>>     
>
> FILE(GLOB CPPFILES  RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
> IF(CMAKE_COMPILER_IS_GNUCXX)
>   SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall")
> ENDIF(CMAKE_COMPILER_IS_GNUCXX)
> ADD_LIBRARY(Trace ${CPPFILES})
>
>   
Thanks for the library thing.
But i still got the problem with the INCLUDE_DIRECTORIES and "full 
source directory"
Of course i can add on the CMAKE_CXX_FLAGS_DEBUG a -I PATH or on the
SET_TARGET_PROPERTIES(${TARGET} PROPERTIES COMPILE_FLAGS "-I....")
But it'not nice...



> ------------------------------------------------------------------------
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xavier.Larrode.vcf
Type: text/x-vcard
Size: 169 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060728/7c8506f7/Xavier.Larrode.vcf


More information about the CMake mailing list