mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
13 lines
336 B
CMake
13 lines
336 B
CMake
find_path(serial_INCLUDE_DIRS serial.h /usr/include "$ENV{NAMER_ROOT}")
|
|
|
|
find_library(serial_LIBRARIES serial /usr/lib "$ENV{NAMER_ROOT}")
|
|
|
|
set(serial_FOUND TRUE)
|
|
|
|
if (NOT serial_INCLUDE_DIRS)
|
|
set(serial_FOUND FALSE)
|
|
endif (NOT serial_INCLUDE_DIRS)
|
|
|
|
if (NOT serial_LIBRARIES)
|
|
set(serial_FOUND FALSE)
|
|
endif (NOT serial_LIBRARIES) |