Make dingusppc and testppc independent targets.

This commit is contained in:
Maxim Poliakovski 2020-02-10 16:41:40 +01:00
parent d4a2f400b5
commit a06fb88324
2 changed files with 13 additions and 2 deletions

View File

@ -23,7 +23,7 @@ add_executable(dingusppc ${SOURCES} $<TARGET_OBJECTS:cpu_ppc> $<TARGET_OBJECTS:d
add_executable(testppc ${TEST_SOURCES} $<TARGET_OBJECTS:cpu_ppc> $<TARGET_OBJECTS:devices>)
add_custom_command(
TARGET ${PROJECT_NAME} POST_BUILD
TARGET testppc POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
"${PROJECT_SOURCE_DIR}/cpu/ppc/test/ppcinttests.csv"
$<TARGET_FILE_DIR:${PROJECT_NAME}>)

View File

@ -35,7 +35,7 @@ the following commands in the OS terminal:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make dingusppc
```
You may specify another build type using the variable CMAKE_BUILD_TYPE.
@ -43,6 +43,17 @@ Due to the incomplete status of the program at this time, no additional librarie
Future versions will include SDL 2 as a requirement.
## Testing
DingusPPC includes a test suite for verifying the correctness of its PowerPC CPU
emulation. To build the tests, use the following terminal commands:
```
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make testppc
```
## Intended Minimum Requirements
- Windows 7 or newer (64-bit), Linux 4.4 or newer, Mac OS X 10.9 or newer (64-bit)