File: fl_debug_pkg.cmake

package info (click to toggle)
fltk1.4 1.4.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 28,312 kB
  • sloc: cpp: 154,655; ansic: 102,141; sh: 3,735; makefile: 2,503; xml: 93; perl: 44
file content (69 lines) | stat: -rw-r--r-- 2,168 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# Macro used by the CMake build system for the Fast Light Tool Kit (FLTK).
#
# Copyright 2022 by Bill Spitzak and others.
#
# This library is free software. Distribution and use rights are outlined in
# the file "COPYING" which should have been included with this file.  If this
# file is missing or damaged, see the license at:
#
#     https://www.fltk.org/COPYING.php
#
# Please see the following page on how to report bugs and issues:
#
#     https://www.fltk.org/bugs.php
#

#######################################################################
# fl_debug_pkg - a macro to output pkgconfig debugging info
#######################################################################
#
# This macro displays the name and value of some CMake variables
# defined by pkg_check_modules().
#
# Syntax:
#
#   fl_debug_pkg(PREFIX NAME)
#
# Example for package "cairo":
#
#  pkg_check_modules (CAIRO cairo)
#  fl_debug_pkg(CAIRO cairo)
#
# The first command searches for pkg 'cairo' and stores the results
# in CMake variables with prefix 'CAIRO_'.
#
# The second command displays all relevant variables if the package has
# been found, otherwise only 'CAIRO_FOUND' (empty or false).
#
#######################################################################

macro(fl_debug_pkg PREFIX NAME)
  message("")
  message(STATUS "Results of pkg_check_modules(${PREFIX}, ${NAME}):")
  fl_debug_var(${PREFIX}_FOUND)
  if(${PREFIX}_FOUND)

    fl_debug_var(${PREFIX}_INCLUDE_DIRS)
    fl_debug_var(${PREFIX}_CFLAGS)
    fl_debug_var(${PREFIX}_LIBRARIES)
    fl_debug_var(${PREFIX}_LINK_LIBRARIES)
    fl_debug_var(${PREFIX}_LIBRARY_DIRS)
    fl_debug_var(${PREFIX}_LDFLAGS)
    fl_debug_var(${PREFIX}_LDFLAGS_OTHER)
    fl_debug_var(${PREFIX}_CFLAGS_OTHER)

    fl_debug_var(${PREFIX}_STATIC_INCLUDE_DIRS)
    fl_debug_var(${PREFIX}_STATIC_CFLAGS)
    fl_debug_var(${PREFIX}_STATIC_LIBRARIES)
    fl_debug_var(${PREFIX}_STATIC_LINK_LIBRARIES)
    fl_debug_var(${PREFIX}_STATIC_LIBRARY_DIRS)

    fl_debug_var(${PREFIX}_VERSION)
    fl_debug_var(${PREFIX}_PREFIX)
    fl_debug_var(${PREFIX}_INCLUDEDIR)
    fl_debug_var(${PREFIX}_LIBDIR)

  endif()
  message("")
endmacro(fl_debug_pkg)