cmake and include dirs
Alexander Neundorf
neundorf at kde.org
Thu Feb 16 19:31:09 CET 2006
On Thursday 16 February 2006 16:03, Brad King wrote:
...
> I suggest you create a macro that loops over its arguments and adds the
> paths relative to ${CMAKE_CURRENT_BINARY_DIR} and then
> ${CMAKE_CURRENT_SOURCE_DIR}:
>
> macro(kde4_add_subdirectory_includes)
> foreach(d ${ARGV})
> include_directories(${CMAKE_CURRENT_BINARY_DIR}/${d})
> include_directories(${CMAKE_CURRENT_SOURCE_DIR}/${d})
> endforeach(d)
> endmacro(kde4_add_subdirectory_includes)
>
> Then
>
> kde4_add_subdirectory_includes(
> misc dom xml html rendering ecma imload imload/decoders)
If it is really required to simplify this, I would suggest the same, but
probably not with the "kde4_" prefix, but the "macro_" prefix
Bye
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list