Closed schuhschuh closed 8 years ago
Probably best:
# ----------------------------------------------------------------------------
## @brief Use a previously added project module.
macro (basis_use_module MODULE)
include ("${${MODULE}_USE_FILE}")
add_definitions(-DHAVE_${PROJECT_PACKAGE_NAME}_${MODULE})
endmacro ()
This requires the basis_add_module
function to become a macro that includes the module <MODULE>Config.cmake
file.
The_INCLUDE_DIRS to the search path, or alternatively provide a function
basis_add_module
should add thebasis_use_module
that does it, which is called right afterbasis_add_module
by the defaultbasis_project_impl
.