Files
aaruremote/CMakeLists.txt

21 lines
610 B
CMake
Raw Normal View History

2019-10-12 13:06:21 +01:00
cmake_minimum_required(VERSION 3.14)
project(dicremote C)
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 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/)
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)