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

34 lines
1.1 KiB
CMake
Raw Normal View History

2017-04-10 17:57:15 -04:00
# Find Lime Suite
2020-04-30 08:19:19 -04:00
if (NOT LIMESUITE_FOUND)
if (NOT LIMESUITE_INCLUDE_DIR)
find_path (LIMESUITE_INCLUDE_DIR
NAMES lime/LimeSuite.h
HINTS ${LIMESUITE_DIR}/include
PATHS /usr/include
/usr/local/include
)
endif()
2017-04-10 17:57:15 -04:00
2020-04-30 08:19:19 -04:00
if (NOT LIMESUITE_LIBRARY)
find_library (LIMESUITE_LIBRARY
NAMES LimeSuite
HINTS ${LIMESUITE_DIR}/lib
${CMAKE_INSTALL_PREFIX}/lib
${CMAKE_INSTALL_PREFIX}/lib64
PATHS /usr/local/lib
/usr/local/lib64
/usr/lib
/usr/lib64
)
endif()
2020-04-30 08:19:19 -04:00
if (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
set(LIMESUITE_FOUND TRUE CACHE INTERNAL "")
message (STATUS "Found Lime Suite: ${LIMESUITE_INCLUDE_DIR}, ${LIMESUITE_LIBRARY}")
else (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
set(LIMESUITE_FOUND FALSE CACHE INTERNAL "")
message (STATUS "Could not find Lime Suite")
endif (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
2017-04-10 17:57:15 -04:00
2020-04-30 08:19:19 -04:00
mark_as_advanced(LIMESUITE_INCLUDE_DIR LIMESUITE_LIBRARY)
endif (NOT LIMESUITE_FOUND)