Depends.cmake
Go to the documentation of this file.
1 # ============================================================================
2 # Copyright (c) 2015 <provider-name>
3 # All rights reserved.
4 #
5 # See COPYING file for license information.
6 # ============================================================================
7 
8 ##############################################################################
9 # @file Depends.cmake
10 # @brief Find additional dependencies.
11 #
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.
17 #
18 # Use this file to find additional dependencies or dependencies which are
19 # only required by a project if certain modules are enabled.
20 #
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
26 #
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.
30 #
31 # Example:
32 # @code
33 # if (SlicerExtension_ENABLED)
34 # # requires Slicer if the SlicerExtension module is enabled
35 # basis_find_package (Slicer REQUIRED)
36 # basis_use_package (Slicer)
37 # endif ()
38 # @endcode
39 #
40 # @ingroup BasisSettings
41 ##############################################################################
42