mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
18 lines
509 B
CMake
18 lines
509 B
CMake
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)
|
|
|
|
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 cam) |