FindSparseBayes.cmake
Go to the documentation of this file.
1 ##############################################################################
2 # @file FindSparseBayes.cmake
3 # @brief Find SparseBayes package from Vector Anomaly Limited.
4 #
5 # @sa http://www.vectoranomaly.com/downloads/downloads.htm
6 ##############################################################################
7 
8 #=============================================================================
9 # Copyright 2011-2012 University of Pennsylvania
10 # Copyright 2013-2016 Andreas Schuh <andreas.schuh.84@gmail.com>
11 #
12 # Distributed under the OSI-approved BSD License (the "License");
13 # see accompanying file Copyright.txt for details.
14 #
15 # This software is distributed WITHOUT ANY WARRANTY; without even the
16 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 # See the License for more information.
18 #=============================================================================
19 # (To distribute this file outside of CMake, substitute the full
20 # License text for the above reference.)
21 
22 include (FindPackageHandleStandardArgs)
23 
24 find_path (
25  SparseBayes_DIR SparseBayes.m
26  DOC "The directory containing SparseBayes.m file of the SparseBayes package."
27 )
28 
29 set (SparseBayes_INCLUDE_DIR "${SparseBayes_DIR}")
30 
31 find_package_handle_standard_args (
32  SparseBayes
33  REQUIRED_ARGS
34  SparseBayes_INCLUDE_DIR
35 )
cmake SparseBayes_INCLUDE_DIR