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
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

begin:vcard
fn;quoted-printable:Xavier Larrod=C3=A9
n;quoted-printable:Larrod=C3=A9;Xavier
org:IRISA ;E119 Orange
title:Projet GVT
tel;work:73 28
version:2.1
end:vcard

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to