mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 19:28:47 -05:00
30 lines
738 B
CMake
30 lines
738 B
CMake
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
|
|
)
|
|
|
|
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)
|