forked from dolphin-emu/hwtests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (22 loc) · 1.01 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 2.6)
project(hwtests)
message(STATUS "Using toolchain file " ${CMAKE_TOOLCHAIN_FILE})
add_definitions(-std=c++11)
include_directories(${LIBOGCDIR}/include)
link_directories(${DEVKITPRO}/libogc/lib/wii)
set(MACHDEP "-DGEKKO -mrvl -mcpu=750 -meabi -mhard-float")
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${MACHDEP}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MACHDEP}")
set(CMAKE_EXECUTABLE_SUFFIX ".elf")
add_custom_target(run)
function(add_hwtest module testname filelist)
add_executable(${module}_${testname} ${filelist} ${COMMON_CODE})
target_link_libraries(${module}_${testname} hwtests_common wiiuse bte fat ogc m)
add_custom_target(run_${module}_${testname} sh ${CMAKE_SOURCE_DIR}/run.sh ${module}_${testname}${CMAKE_EXECUTABLE_SUFFIX})
add_dependencies(run_${module}_${testname} ${module}_${testname})
add_dependencies(run run_${module}_${testname})
endfunction()
include_directories(common)
add_subdirectory(common)
add_subdirectory(cputest)
add_subdirectory(gxtest)