mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 21:01:45 -05:00
Added cmake module for SerialDV
This commit is contained in:
parent
b63ee5eeec
commit
0de9b7eeab
22
cmake/Modules/FindSerialDV.cmake
Normal file
22
cmake/Modules/FindSerialDV.cmake
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# Find serialDV
|
||||||
|
|
||||||
|
FIND_PATH(LIBSERIALDV_INCLUDE_DIR dvcontroller.h)
|
||||||
|
|
||||||
|
SET(LIBSERIAL_NAMES ${LIBSERIAL_NAMES} serialdv libserialdv)
|
||||||
|
FIND_LIBRARY(LIBSERIALDV_LIBRARY NAMES ${LIBSERIALDV_NAMES} PATH)
|
||||||
|
|
||||||
|
IF (LIBSERIALDV_INCLUDE_DIR AND LIBSERIALDV_LIBRARY)
|
||||||
|
SET(LIBSERIALDV_FOUND TRUE)
|
||||||
|
ENDIF (LIBSERIALDV_INCLUDE_DIR AND LIBSERIALDV_LIBRARY)
|
||||||
|
|
||||||
|
IF (LIBSERIALDV_FOUND)
|
||||||
|
IF (NOT SerialDV_FIND_QUIETLY)
|
||||||
|
MESSAGE (STATUS "Found libserialdv: ${LIBSERIALDV_INCLUDE_DIR}, ${LIBSERIALDV_LIBRARY}")
|
||||||
|
ENDIF (NOT SerialDV_FIND_QUIETLY)
|
||||||
|
ELSE (LIBSERIALDV_FOUND)
|
||||||
|
IF (SerialDV_FIND_REQUIRED)
|
||||||
|
MESSAGE (FATAL_ERROR "Could not find SerialDV")
|
||||||
|
ENDIF (SerialDV_FIND_REQUIRED)
|
||||||
|
ENDIF (LIBSERIALDV_FOUND)
|
||||||
|
|
||||||
|
mark_as_advanced(LIBSERIALDV_INCLUDE_DIR LIBSERIALDV_LIBRARY)
|
Loading…
Reference in New Issue
Block a user