Go to the documentation of this file. 1 # ============================================================================ 2 # Copyright (c) <copyright> 6 # ============================================================================ 8 ############################################################################## 10 # @brief Find additional dependencies. 12 # This file is included by basis_project_impl() after it included the 13 # BasisProject.cmake file of the project and collected information about its 14 # modules. Furthermore, it is included before it looks for the packages 15 # specified as arguments to the basis_project() command. At this point, the 16 # CMake project is not initialized yet and most BASIS variables are not set. 18 # Use this file to find additional dependencies or dependencies which are 19 # only required by a project if certain modules are enabled. 21 # Use case: If this project has a module which is a Slicer Extension 22 # and the project itself shall be build as Slicer Extension only if the 23 # module is enabled, the Slicer package configuration file has to be 24 # included here such that the Slicer settings are imported before any 25 # module is configured. This is done by using the command 27 # Another use case would be that you want to specify advanced options to 28 # the basis_find_package() function which you cannot specify as part of 29 # the dependencies arguments of the basis_project() function. 33 # if (SlicerExtension_ENABLED) 34 # # requires Slicer if the SlicerExtension module is enabled 35 # basis_find_package (Slicer REQUIRED) 36 # basis_use_package (Slicer) 40 # @ingroup BasisSettings 41 ##############################################################################