diff --git a/freebsd/CMakeLists.txt b/freebsd/CMakeLists.txt index c8530c2..fda01a5 100644 --- a/freebsd/CMakeLists.txt +++ b/freebsd/CMakeLists.txt @@ -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) \ No newline at end of file +target_link_libraries(aaruremote aaruremotecore cam) \ No newline at end of file