mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Require CAM library.
This commit is contained in:
@@ -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
|
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)
|
../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})
|
add_executable(aaruremote ${PLATFORM_SOURCES})
|
||||||
|
|
||||||
target_link_libraries(aaruremote aaruremotecore)
|
target_link_libraries(aaruremote aaruremotecore cam)
|
||||||
Reference in New Issue
Block a user