mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Don't name executable with architecture.
This commit is contained in:
@@ -7,7 +7,7 @@ set(CMAKE_C_STANDARD 90)
|
|||||||
|
|
||||||
set(MAIN_SOURCES main.c list_devices.c device.c scsi.c hex2bin.c usb.c ieee1394.c pcmcia.c ata.c sdhci.c worker.c endian.h)
|
set(MAIN_SOURCES main.c list_devices.c device.c scsi.c hex2bin.c usb.c ieee1394.c pcmcia.c ata.c sdhci.c worker.c endian.h)
|
||||||
|
|
||||||
add_library(dicremote ${MAIN_SOURCES})
|
add_library(dicremotecore ${MAIN_SOURCES})
|
||||||
|
|
||||||
CHECK_INCLUDE_FILES("endian.h" HAVE_ENDIAN_H)
|
CHECK_INCLUDE_FILES("endian.h" HAVE_ENDIAN_H)
|
||||||
CHECK_INCLUDE_FILES("sys/endian.h" HAVE_SYS_ENDIAN_H)
|
CHECK_INCLUDE_FILES("sys/endian.h" HAVE_SYS_ENDIAN_H)
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ set(PLATFORM_SOURCES list_devices.c linux.h device.c scsi.c usb.c ieee1394.c pcm
|
|||||||
CHECK_LIBRARY_EXISTS("udev" udev_new "" HAS_UDEV)
|
CHECK_LIBRARY_EXISTS("udev" udev_new "" HAS_UDEV)
|
||||||
CHECK_INCLUDE_FILES("linux/mmc/ioctl.h" HAVE_MMC_IOCTL_H)
|
CHECK_INCLUDE_FILES("linux/mmc/ioctl.h" HAVE_MMC_IOCTL_H)
|
||||||
|
|
||||||
add_executable(dicremote-${CMAKE_SYSTEM_PROCESSOR} ${PLATFORM_SOURCES})
|
add_executable(dicremote ${PLATFORM_SOURCES})
|
||||||
|
|
||||||
if (HAS_UDEV)
|
if (HAS_UDEV)
|
||||||
target_link_libraries(dicremote-${CMAKE_SYSTEM_PROCESSOR} udev)
|
target_link_libraries(dicremote udev)
|
||||||
add_definitions(-DHAS_UDEV)
|
add_definitions(-DHAS_UDEV)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
@@ -20,4 +20,4 @@ if (HAVE_MMC_IOCTL_H)
|
|||||||
add_definitions(-DHAS_UAPI_MMC)
|
add_definitions(-DHAS_UAPI_MMC)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
target_link_libraries(dicremote-${CMAKE_SYSTEM_PROCESSOR} dicremote)
|
target_link_libraries(dicremote dicremotecore)
|
||||||
@@ -9,4 +9,4 @@ set(PLATFORM_SOURCES wii.c hello.c network.c wii.h list_devices.c)
|
|||||||
add_executable(dicremote-wii ${PLATFORM_SOURCES})
|
add_executable(dicremote-wii ${PLATFORM_SOURCES})
|
||||||
set_target_properties(dicremote-wii PROPERTIES LINK_FLAGS -L$ENV{DEVKITPRO}/libogc/lib/wii/)
|
set_target_properties(dicremote-wii PROPERTIES LINK_FLAGS -L$ENV{DEVKITPRO}/libogc/lib/wii/)
|
||||||
set_target_properties(dicremote-wii PROPERTIES OUTPUT_NAME dicremote.elf)
|
set_target_properties(dicremote-wii PROPERTIES OUTPUT_NAME dicremote.elf)
|
||||||
target_link_libraries(dicremote-wii dicremote -lwiiuse -lbte -logc -lm)
|
target_link_libraries(dicremote-wii dicremotecore -lwiiuse -lbte -logc -lm)
|
||||||
Reference in New Issue
Block a user