2016-05-07 16:07:51 -04:00
|
|
|
# Find serialDV
|
|
|
|
|
2019-01-14 17:41:24 -05:00
|
|
|
find_path(LIBSERIALDV_INCLUDE_DIR
|
2019-01-02 15:33:45 -05:00
|
|
|
NAMES dvcontroller.h
|
|
|
|
PATHS ${SERIALDV_DIR}/include/serialdv
|
|
|
|
/usr/include/serialdv
|
|
|
|
/usr/local/include/serialdv
|
|
|
|
)
|
2016-05-07 16:07:51 -04:00
|
|
|
|
2019-01-02 15:33:45 -05:00
|
|
|
set(LIBSERIAL_NAMES ${LIBSERIAL_NAMES} serialdv libserialdv)
|
2016-05-07 16:07:51 -04:00
|
|
|
|
2019-01-14 17:41:24 -05:00
|
|
|
find_library(LIBSERIALDV_LIBRARY
|
|
|
|
NAMES serialdv
|
2019-01-02 15:33:45 -05:00
|
|
|
PATHS ${SERIALDV_DIR}/lib
|
|
|
|
/usr/lib
|
|
|
|
/usr/local/lib
|
|
|
|
)
|
2016-05-07 16:07:51 -04:00
|
|
|
|
2019-01-02 15:33:45 -05:00
|
|
|
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)
|
2016-05-07 16:07:51 -04:00
|
|
|
|
|
|
|
mark_as_advanced(LIBSERIALDV_INCLUDE_DIR LIBSERIALDV_LIBRARY)
|