############################################################################## # @file @USE_FILE@ # @brief CMake package configuration use file. # # @note The @USE_FILE@ file is automatically generated # by BASIS from the template file ConfigUse.cmake.in which is part of the # BASIS installation. # # @ingroup BasisConfig ############################################################################## # ============================================================================ # namespace # ============================================================================ @BASIS_NS@ # ============================================================================ # include guard # ============================================================================ if (__${NS}USE_FILE_INCLUDED) return () else () set (__${NS}USE_FILE_INCLUDED 1) endif () # ============================================================================ # use project settings # ============================================================================ # include directories if (${NS}INCLUDE_DIRS) include_directories (${${NS}INCLUDE_DIRS}) elseif (${NS}INCLUDE_DIR) include_directories (${${NS}INCLUDE_DIR}) endif () # library directories if (${NS}LIBRARY_DIRS) link_directories (${${NS}LIBRARY_DIRS}) elseif (${NS}LIBRARY_DIR) link_directories (${${NS}LIBRARY_DIR}) endif () # ============================================================================ # import build targets # ============================================================================ ## @brief Whether to import the exported targets. set (NO_${NS}IMPORTS "${NO_${NS}IMPORTS}") if (NOT NO_${NS}IMPORTS) include ("${${NS}EXPORTS_FILE}" OPTIONAL) include ("${${NS}CUSTOM_EXPORTS_FILE}" OPTIONAL) endif () # ============================================================================ # use modules # ============================================================================ foreach (M IN LISTS ${NS}MODULES_REQUESTED) if (${NS}${M}_USE_FILE) set (${M}_CONFIG_PREFIX "${NS}${M}_") include ("${${NS}${M}_USE_FILE}") unset (${M}_CONFIG_PREFIX) endif () endforeach ()