File: cmake-config.in

package info (click to toggle)
pktools 2.6.7.6+ds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 9,040 kB
  • sloc: cpp: 33,451; xml: 10,955; python: 1,601; makefile: 142; sh: 58; ansic: 24
file content (47 lines) | stat: -rw-r--r-- 894 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

usage()
{
    cat <<EOF
Usage: cmake-config [OPTIONS]
Options:
     [--prefix]
     [--version]
     [--libs]
     [--cflags]
     [--ldflags]
     [--includes]
EOF
    exit $1
}
if test $# -eq 0; then
  usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    *) optarg= ;;
esac
case $1 in
    --prefix)
      echo @CMAKE_INSTALL_PREFIX@
     ;;
    --version)
      echo @PKTOOLS_PACKAGE_VERSION@
     ;;
    --cflags)
      echo -I@CMAKE_INSTALL_PREFIX@/include 
      ;;
    --libs)
      echo -L@CMAKE_INSTALL_PREFIX@/@PROJECT_LIBRARY_DIR@ -l@PKTOOLS_ALGORITHMS_LIB_NAME@  -l@PKTOOLS_FILECLASSES_LIB_NAME@ -l@PKTOOLS_IMAGECLASSES_LIB_NAME@ 
      ;;
    --ldflags)
      echo @CMAKE_INSTALL_PREFIX@/@PROJECT_LIBRARY_DIR@
      ;;
    --includes)
      echo @CMAKE_INSTALL_PREFIX@/include
      ;;
  esac
  shift
done