1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-05 08:21:16 -05:00
sdrangel/cmake/Modules/FindAptDec.cmake

30 lines
738 B
CMake
Raw Normal View History

2021-02-27 07:54:25 -05:00
IF(NOT APT_FOUND)
INCLUDE(FindPkgConfig)
PKG_CHECK_MODULES(PC_APT apt)
FIND_PATH(
APT_INCLUDE_DIR
NAMES apt.h
HINTS ${APT_DIR}/include/apt
PATHS /usr/local/include/apt
/usr/include/apt
2021-02-27 07:54:25 -05:00
)
FIND_LIBRARY(
APT_LIBRARIES
NAMES apt
HINTS ${APT_DIR}/lib
PATHS /usr/local/lib
/usr/lib
/usr/lib64
)
message(STATUS "APT LIBRARIES " ${APT_LIBRARIES})
message(STATUS "APT INCLUDE DIRS " ${APT_INCLUDE_DIR})
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(APT DEFAULT_MSG APT_LIBRARIES APT_INCLUDE_DIR)
MARK_AS_ADVANCED(APT_LIBRARIES APT_INCLUDE_DIR)
ENDIF(NOT APT_FOUND)