/usr/share/cmake/muparserx/muparserxConfig.cmake is in libmuparserx-dev 4.0.7+dfsg-3.
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 | if(DEFINED INCLUDED_MUPARSERX_CONFIG_CMAKE)
return()
endif()
set(INCLUDED_MUPARSERX_CONFIG_CMAKE TRUE)
########################################################################
# muparserxConfig - cmake project configuration
#
# The following will be set after find_package(muparserx CONFIG):
# muparserx_LIBRARIES - development libraries
# muparserx_INCLUDE_DIRS - development includes
########################################################################
########################################################################
## installation root
########################################################################
if (UNIX)
get_filename_component(MUPARSERX_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE)
elseif (WIN32)
get_filename_component(MUPARSERX_ROOT "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE)
endif ()
########################################################################
## locate the library
########################################################################
find_library(
MUPARSERX_LIBRARY muparserx
PATHS ${MUPARSERX_ROOT}/lib${LIB_SUFFIX}
PATH_SUFFIXES ${CMAKE_LIBRARY_ARCHITECTURE}
NO_DEFAULT_PATH
)
if(NOT MUPARSERX_LIBRARY)
message(FATAL_ERROR "cannot find muparserx library in ${MUPARSERX_ROOT}/lib${LIB_SUFFIX}")
endif()
set(muparserx_LIBRARIES ${MUPARSERX_LIBRARY})
########################################################################
## locate the includes
########################################################################
find_path(
MUPARSERX_INCLUDE_DIR mpDefines.h
PATHS ${MUPARSERX_ROOT}/include/muparserx
NO_DEFAULT_PATH
)
if(NOT MUPARSERX_INCLUDE_DIR)
message(FATAL_ERROR "cannot find muparserx includes in ${MUPARSERX_ROOT}/include/muparserx")
endif()
set(muparserx_INCLUDE_DIRS ${MUPARSERX_INCLUDE_DIR})
|