Require CAM library.

This commit is contained in:
2020-10-26 01:20:04 +00:00
parent fce40c6175
commit f75c3c4959

View File

@@ -7,6 +7,12 @@ endif ()
set(PLATFORM_SOURCES list_devices.c freebsd.h device.c scsi.c usb.c ieee1394.c pcmcia.c ata.c sdhci.c ../unix/hello.c
../unix/network.c ../unix/unix.c ../unix/unix.h)
CHECK_LIBRARY_EXISTS("cam" cam_open_device "" HAS_CAM)
if (NOT HAS_CAM)
message(FATAL_ERROR "Cannot find CAM libraries.")
endif ()
add_executable(aaruremote ${PLATFORM_SOURCES})
target_link_libraries(aaruremote aaruremotecore)
target_link_libraries(aaruremote aaruremotecore cam)