We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4092

Summary: [patch] CMake support for building everything in the "test" directory
Product: SDL Reporter: Eric Wasylishen <ewasylishen>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Other   
Attachments: cmake patch

Description Eric Wasylishen 2018-02-23 07:06:35 UTC
Created attachment 3180 [details]
cmake patch

Patch to support building the tests with cmake.
Disabled by default, use: "cmake .. -DSDL_TEST=YES" to enable the tests.

Tested on macOS 10.13 with the ninja, makefile, and Xcode generators, and Windows 10 with the Visual Studio 2017 generator.
Comment 1 Sam Lantinga 2018-02-24 17:00:14 UTC
Added, thanks!
https://hg.libsdl.org/SDL/rev/e4d03d8733f3