| Summary: | Test resources missing when building with SDL_TEST and CMake | ||
|---|---|---|---|
| Product: | SDL | Reporter: | DominikD <conayr> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 10 | ||
| Attachments: |
changes to CMakeLists.txt to account for missing resources
single line change |
||
Actually I thought about it and there's even simpler fix. Patch attached. Created attachment 4287 [details]
single line change
Patch added, thanks! https://hg.libsdl.org/SDL/rev/4897f7f06e52 This is now fixed. |
Created attachment 4286 [details] changes to CMakeLists.txt to account for missing resources There are several tests that need resources in the output directory to work: * `testiconv` depends on `utf8.txt` * `testoverlay2` and `teststreaming` depend on `moose.dat` This patch adds these two files to the `RESOURCE_FILES` variable. One could also copy `shapes\*.bmp` over to the output directory for `testshape` to use but this patch doesn't do that for three reasons: * executable takes path as an argument and doesn't need these files side by side * these are ~45MB and copying them over would cause build directory to swell * there are already files in the output directory that can be used with this test (`sample.bmp` and `button.bmp`) Patch attached. Filed in `don't know` since there's no `test` component.