2020-10-26 01:11:00 +00:00
|
|
|
project(aaruremote-fbsd C)
|
|
|
|
|
|
|
|
|
|
if (NOT "${CMAKE_SYSTEM}" MATCHES "FreeBSD")
|
|
|
|
|
return()
|
|
|
|
|
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)
|
|
|
|
|
|
2020-10-26 01:20:04 +00:00
|
|
|
CHECK_LIBRARY_EXISTS("cam" cam_open_device "" HAS_CAM)
|
|
|
|
|
|
|
|
|
|
if (NOT HAS_CAM)
|
|
|
|
|
message(FATAL_ERROR "Cannot find CAM libraries.")
|
|
|
|
|
endif ()
|
|
|
|
|
|
2020-10-26 01:11:00 +00:00
|
|
|
add_executable(aaruremote ${PLATFORM_SOURCES})
|
|
|
|
|
|
2020-10-26 01:20:04 +00:00
|
|
|
target_link_libraries(aaruremote aaruremotecore cam)
|