2019-10-21 08:12:41 +01:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
2019-10-12 13:06:21 +01:00
|
|
|
project(dicremote C)
|
2019-10-20 17:16:47 +01:00
|
|
|
include(CheckIncludeFiles)
|
|
|
|
|
include(CheckLibraryExists)
|
2019-10-12 13:06:21 +01:00
|
|
|
|
|
|
|
|
set(CMAKE_C_STANDARD 90)
|
|
|
|
|
|
2019-10-20 21:50:25 +01:00
|
|
|
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)
|
2019-10-13 00:05:13 +01:00
|
|
|
|
2019-10-20 19:23:34 +01:00
|
|
|
add_library(dicremote ${MAIN_SOURCES})
|
2019-10-20 17:06:02 +01:00
|
|
|
|
2019-10-20 19:23:34 +01:00
|
|
|
if (WII)
|
|
|
|
|
set(CMAKE_C_FLAGS "-mrvl -mcpu=750 -meabi -mhard-float")
|
|
|
|
|
add_definitions(-DGEKKO=1)
|
|
|
|
|
include_directories($ENV{DEVKITPRO}/libogc/include/)
|
2019-10-20 17:11:12 +01:00
|
|
|
endif ()
|
|
|
|
|
|
2019-10-20 19:23:34 +01:00
|
|
|
set(DIC_PORTS "linux;wii" CACHE STRING "List of ports to build")
|
|
|
|
|
foreach (PORT IN LISTS DIC_PORTS)
|
|
|
|
|
add_subdirectory(${PORT})
|
|
|
|
|
endforeach (PORT)
|