kdelibs/cmake/modules/FindGeom.cmake
Ivailo Monev 4967b54e6f solid: devinfo and geom backends
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-05 09:32:16 +00:00

27 lines
711 B
CMake

# Try to find geom, once done this will define:
#
# GEOM_FOUND - system has geom
# GEOM_INCLUDES - the geom include directory
# GEOM_LIBRARIES - the libraries needed to use geom
#
# Copyright (c) 2021 Ivailo Monev <xakepa10@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
find_path(GEOM_INCLUDES
NAMES libgeom.h
HINTS $ENV{GEOMDIR}/include
)
find_library(GEOM_LIBRARIES
NAMES geom
HINTS $ENV{GEOMDIR}/lib
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Geom
REQUIRED_VARS GEOM_LIBRARIES GEOM_INCLUDES
)
mark_as_advanced(GEOM_INCLUDES GEOM_LIBRARIES)