Depends.cmake
Go to the documentation of this file.
00001 ############################################################################## 00002 # @file Depends.cmake 00003 # @brief Find additional dependencies. 00004 # 00005 # This file is included by basis_project_impl() after it included the 00006 # BasisProject.cmake file of the project and collected information about its 00007 # modules. Furthermore, it is included before it looks for the packages 00008 # specified as arguments to the basis_project() command. At this point, the 00009 # CMake project is not initialized yet and most BASIS variables are not set. 00010 # 00011 # Use this file to find additional dependencies or dependencies which are 00012 # only required by a project if certain modules are enabled. 00013 # 00014 # Use case: If this project has a module which is a Slicer Extension 00015 # and the project itself shall be build as Slicer Extension only if the 00016 # module is enabled, the Slicer package configuration file has to be 00017 # included here such that the Slicer settings are imported before any 00018 # module is configured. This is done by using the command 00019 # 00020 # Another use case would be that you want to specify advanced options to 00021 # the basis_find_package() function which you cannot specify as part of 00022 # the dependencies arguments of the basis_project() function. 00023 # 00024 # Example: 00025 # @code 00026 # if (SlicerExtension_ENABLED) 00027 # # requires Slicer if the SlicerExtension module is enabled 00028 # basis_find_package (Slicer REQUIRED) 00029 # basis_use_package (Slicer) 00030 # endif () 00031 # @endcode 00032 # 00033 # Copyright (c) <year> University of Pennsylvania. All rights reserved.<br /> 00034 # See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file. 00035 # 00036 # Contact: SBIA Group <sbia-software at uphs.upenn.edu> 00037 # 00038 # @ingroup BasisSettings 00039 ############################################################################## 00040