# (C) Copyright 2008-2009 SDML (www.sdml.info) # # Use, modification and distribution is subject to the Boost Software # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # Explicitly declare a dependence on an Origin library. This differs from using # the DEPENDS in the origin_project macro since it does not establish a # top-level dependency. This can be used to establish weak dependencies, e.g., # in test directories. # # This simply adds the include directories for each given module to the search # path for the current project. # # origin_depend(Args...) macro(origin_depend) foreach(arg ${ARGN}) set(inc ${ORIGIN_ROOT}/${arg}/include) list(APPEND incs ${inc}) endforeach() include_directories(${incs}) endmacro()