sdrangel/cmake/Modules/FindLimeSuite.cmake

35 wiersze
887 B
CMake
Czysty Zwykły widok Historia

2017-04-10 21:57:15 +00:00
# Find Lime Suite
if (NOT LIMESUITE_INCLUDE_DIR)
2017-05-08 16:30:52 +00:00
FIND_PATH (LIMESUITE_INCLUDE_DIR
NAMES lime/LimeSuite.h
PATHS
/usr/include
/usr/local/include
)
endif()
if (NOT LIMESUITE_LIBRARY)
2017-05-08 16:30:52 +00:00
FIND_LIBRARY (LIMESUITE_LIBRARY
NAMES LimeSuite
HINTS ${CMAKE_INSTALL_PREFIX}/lib
${CMAKE_INSTALL_PREFIX}/lib64
PATHS /usr/local/lib
/usr/local/lib64
/usr/lib
/usr/lib64
)
endif()
2017-04-10 21:57:15 +00:00
IF (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
SET(LIMESUITE_FOUND TRUE)
ENDIF (LIMESUITE_INCLUDE_DIR AND LIMESUITE_LIBRARY)
IF (LIMESUITE_FOUND)
2017-04-11 20:26:42 +00:00
MESSAGE (STATUS "Found Lime Suite: ${LIMESUITE_INCLUDE_DIR}, ${LIMESUITE_LIBRARY}")
2017-04-10 21:57:15 +00:00
ELSE (LIMESUITE_FOUND)
2017-04-11 20:26:42 +00:00
MESSAGE (STATUS "Could not find Lime Suite")
2017-04-10 21:57:15 +00:00
ENDIF (LIMESUITE_FOUND)
mark_as_advanced(LIMESUITE_INCLUDE_DIR LIMESUITE_LIBRARY)