mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Add targets for Wii using DevKitPPC.
This commit is contained in:
22
linux/CMakeLists.txt
Normal file
22
linux/CMakeLists.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
project(dicremote-linux C)
|
||||
|
||||
if (NOT "${CMAKE_SYSTEM}" MATCHES "Linux")
|
||||
return()
|
||||
endif ()
|
||||
|
||||
set(PLATFORM_SOURCES list_devices.c linux.h device.c scsi.c usb.c ieee1394.c pcmcia.c ata.c sdhci.c)
|
||||
CHECK_LIBRARY_EXISTS("udev" udev_new "" HAS_UDEV)
|
||||
CHECK_INCLUDE_FILES("linux/mmc/ioctl.h" HAVE_MMC_IOCTL_H)
|
||||
|
||||
add_executable(dicremote-${CMAKE_SYSTEM_PROCESSOR} ${PLATFORM_SOURCES})
|
||||
|
||||
if (HAS_UDEV)
|
||||
target_link_libraries(dicremote-${CMAKE_SYSTEM_PROCESSOR} udev)
|
||||
add_definitions(-DHAS_UDEV)
|
||||
endif ()
|
||||
|
||||
if (HAVE_MMC_IOCTL_H)
|
||||
add_definitions(-DHAS_UAPI_MMC)
|
||||
endif ()
|
||||
|
||||
target_link_libraries(dicremote-${CMAKE_SYSTEM_PROCESSOR} dicremote)
|
||||
Reference in New Issue
Block a user