C++QED  v2 Milestone 10
a framework for simulating open quantum dynamics
Findflens.cmake
1 # Copyright Raimar Sandner 2012–2014. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt)
2 
3 #! \file
4 #! \ingroup FindPackage
5 #! \brief Find FLENS.
6 #!
7 #! Once done, this will define
8 #!
9 #! - `flens_FOUND` - system has flens
10 #! - `flens_INCLUDE_DIRS` - the flens include directories
11 
12 if (UNIX)
13  find_package(PkgConfig QUIET)
14  pkg_check_modules(flens_PKGCONF QUIET flens)
15 endif()
16 
17 # Include dir
18 find_path(flens_INCLUDE_DIR
19  NAMES flens/flens.cxx
20  PATHS ${flens_PKGCONF_INCLUDE_DIRS}
21 )
22 
23 # Set the include dir variables and the libraries and let libfind_process do the rest.
24 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
25 set(flens_PROCESS_INCLUDES flens_INCLUDE_DIR)
26 libfind_process(flens)