File: MmbConfig.cmake.in

package info (click to toggle)
macromoleculebuilder 4.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 122,488 kB
  • sloc: cpp: 23,632; python: 5,047; ansic: 2,101; awk: 145; perl: 144; makefile: 40; sh: 21
file content (53 lines) | stat: -rw-r--r-- 1,693 bytes parent folder | download | duplicates (4)
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
# MmbConfig.cmake

# This should define the following:
#   MMB_FOUND - Whether search for MMB libraries and headers succeeded.
#   MMB_ROOT_DIR - the installation directory; all the pieces must be
#                       found together
#   MMB_INCLUDE_DIR - location of MMB header files
#   MMB_LIB_DIR     - location of libMMB.{a,so,dylib} or libMMB.lib
#   MMB_BIN_DIR     - location of .dll's on Windows
#   MMB_LIBRARIES   - suitable for target_link_libraries(); includes
#                     both optimized and debug libraries if both are
#                     available
#   MMB_STATIC_LIBRARIES - suitable for target_link_libraries(); includes
#                          both optimized and debug static libraries if
#                          both are available

@PACKAGE_INIT@

set_and_check(@PKG_NAME@_ROOT_DIR
              "@PACKAGE_CMAKE_INSTALL_PREFIX@")

set_and_check(@PKG_NAME@_INCLUDE_DIR
              "@PACKAGE_MMB_INCLUDE_INSTALL_DIR@")

set_and_check(@PKG_NAME@_LIB_DIR
              "@PACKAGE_CMAKE_INSTALL_LIBDIR@")

list(APPEND @PKG_NAME@_BIN_DIR
            "@PACKAGE_CMAKE_INSTALL_BINDIR@")

list(APPEND @PKG_NAME@_CFLAGS
    -I"@PACKAGE_MMB_INCLUDE_INSTALL_DIR@")

list(APPEND @PKG_NAME@_LDFLAGS
            -L"@PACKAGE_CMAKE_INSTALL_LIBDIR@")

include("${CMAKE_CURRENT_LIST_DIR}/MmbTargets.cmake")

if (@BUILD_SHARED@)
    set(MMB_LIBRARIES @LIBMMB_SHARED_TARGET@)
else ()
    set(MMB_LIBRARIES MMB_LIBRARIES-NOTFOUND)
endif ()

if (@BUILD_STATIC@)
    set(MMB_STATIC_LIBRARIES @LIBMMB_STATIC_TARGET@)
else ()
    set(MMB_STATIC_LIBRARIES MMB_STATIC_LIBRARIES-NOTFOUND)
endif ()

mark_as_advanced(MMB_LIBRARIES MMB_STATIC_LIBRARIES)

check_required_components(MMB)