/usr/share/mummy-1.0.3/MummyConfig.cmake is in libkitware-mummy-runtime1.0-cil 1.0.3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | # Set Mummy_DIR to the directory containing this file for FIND_PACKAGE(Mummy)
# to work automatically...
#
GET_FILENAME_COMPONENT(Mummy_CONFIG_FILE "${CMAKE_CURRENT_LIST_FILE}" ABSOLUTE)
GET_FILENAME_COMPONENT(Mummy_CONFIG_DIR "${Mummy_CONFIG_FILE}" PATH)
GET_FILENAME_COMPONENT(Mummy_BASE_DIR "${Mummy_CONFIG_DIR}/../.." ABSOLUTE)
# A mummy build-tree OR install-tree should look like this:
#
# ${Mummy_BASE_DIR}
# --bin
# ----*.dll
# ----*.exe
# ----*.lib
# --include
# ----mummy-1.0.3
# ------*.h
# --share
# ----mummy-1.0.3
# ------mummyConfig.cmake <--- this file is Mummy_CONFIG_FILE
SET(Mummy_VERSION_MAJOR "1")
SET(Mummy_VERSION_MINOR "0")
SET(Mummy_VERSION_PATCH "3")
SET(Mummy_VERSION_SVN_REVISION "599")
SET(Mummy_VERSION_STRING "1.0.3")
SET(Mummy_32_BIT "0")
# If "mummy" does not exist in "bin" then find the first one that
# does exist in a configuration type subdir of "bin."
# Mummy_CMAKE_CONFIGURATION_TYPES is a list of possible configuration
# types in "recommended" order. First existing one found wins.
#
SET(Mummy_CMAKE_BUILD_TYPE "RelWithDebInfo")
SET(Mummy_CMAKE_CONFIGURATION_TYPES "")
SET(MUMMY_RUNTIME_UNMANAGED_INSTALL_LIB_DIR "lib/cli/Kitware.mummy.Runtime-1.0")
IF(NOT mummy_EXECUTABLE)
SET(mummy_EXECUTABLE "${Mummy_BASE_DIR}/bin/mummy")
ENDIF()
IF(NOT EXISTS "${mummy_EXECUTABLE}")
FOREACH(Mummy_CONFIGURATION_TYPE ${Mummy_CMAKE_CONFIGURATION_TYPES})
IF(NOT EXISTS "${mummy_EXECUTABLE}")
IF(EXISTS "${Mummy_BASE_DIR}/bin/${Mummy_CONFIGURATION_TYPE}/mummy")
SET(mummy_EXECUTABLE "${Mummy_BASE_DIR}/bin/${Mummy_CONFIGURATION_TYPE}/mummy")
ENDIF()
ENDIF()
ENDFOREACH()
ENDIF()
# Set these two variables based on the value of mummy_EXECUTABLE so that
# the BIN_DIR and LIB_DIR vars match the selected mummy_EXECUTABLE. Since
# mummy_EXECUTABLE is set as a cache variable, an end user may choose a
# new mummy executable and then do another configure. Make sure mummy DIR
# vars are empty for a mummy in "bin" and match the selected config for
# a mummy in a config-based build tree...
#
SET(Mummy_CONFIG_DIR_SUFFIX "")
SET(Mummy_SELECTED_CONFIGURATION "")
IF("${mummy_EXECUTABLE}" MATCHES ".*/bin/([^/]+)/mummy.*")
STRING(REGEX REPLACE ".*/bin/([^/]+)/mummy.*" "\\1"
Mummy_SELECTED_CONFIGURATION "${mummy_EXECUTABLE}"
)
ENDIF()
IF(Mummy_SELECTED_CONFIGURATION)
SET(Mummy_CONFIG_DIR_SUFFIX "/${Mummy_SELECTED_CONFIGURATION}")
ENDIF()
# Set all else based on Mummy_BASE_DIR and Mummy_CONFIG_DIR_SUFFIX:
#
SET(Mummy_BIN_DIR
"${Mummy_BASE_DIR}/bin${Mummy_CONFIG_DIR_SUFFIX}"
)
IF(Mummy_32_BIT)
SET(Mummy_BIN_x64_DIR
"${Mummy_BASE_DIR}/bin/x64${Mummy_CONFIG_DIR_SUFFIX}"
)
ELSE()
SET(Mummy_BIN_x64_DIR
"${Mummy_BASE_DIR}/bin${Mummy_CONFIG_DIR_SUFFIX}"
)
ENDIF()
SET(Mummy_INCLUDE_DIRS
"${Mummy_BASE_DIR}/include/mummy-${Mummy_VERSION_STRING}"
)
SET(Mummy_RUNTIME_LINK_LIBRARIES
"${Mummy_BASE_DIR}/${MUMMY_RUNTIME_UNMANAGED_INSTALL_LIB_DIR}/libKitware.mummy.Runtime.Unmanaged.so"
)
SET(mummy_EXECUTABLE "${mummy_EXECUTABLE}" CACHE FILEPATH "FILEPATH to mummy")
|