summaryrefslogtreecommitdiffstats
path: root/cmake/FindSensorfw.cmake
blob: 22f3ee1fb6b80c185c7a6e3bd3c3cb4f4dbe55ae (plain)
1
2
3
4
5
6
7
8
9
10
find_package(PkgConfig)
if (PKG_CONFIG_FOUND)
    pkg_check_modules(Sensorfw sensord-qt5 IMPORTED_TARGET)
    if (NOT TARGET PkgConfig::Sensorfw)
        set(Sensorfw_FOUND 0)
    endif()
else()
    message("Sensorfw pkg not found. Looking for library")
    find_library(Sensorfw sensorfw)
endif()