File tree Expand file tree Collapse file tree 4 files changed +5
-36
lines changed Expand file tree Collapse file tree 4 files changed +5
-36
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ set(SDL_RENDER_D3D OFF CACHE BOOL "" FORCE)
18
18
set (SDL_RENDER_VULKAN OFF CACHE BOOL "" FORCE )
19
19
set (SDL_VULKAN OFF CACHE BOOL "" FORCE )
20
20
set (SDL_WASAPI OFF CACHE BOOL "" FORCE )
21
+
21
22
fetch_external_module (
22
23
SDL
23
24
GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
@@ -36,7 +37,7 @@ add_langulus_mod(LangulusModInputSDL ${LANGULUS_MOD_INPUTSDL_SOURCES})
36
37
target_link_libraries (LangulusModInputSDL PRIVATE SDL3-static )
37
38
38
39
if (LANGULUS_TESTING )
39
- enable_testing ()
40
+ enable_testing ()
40
41
add_subdirectory (test )
41
42
endif ()
42
43
Original file line number Diff line number Diff line change 5
5
// /
6
6
// / SPDX-License-Identifier: GPL-3.0-or-later
7
7
// /
8
- #include " Main .hpp"
8
+ #include < Langulus/MetaOf .hpp>
9
9
10
- #define CATCH_CONFIG_RUNNER
11
- #include < catch2/catch.hpp>
12
-
13
- LANGULUS_RTTI_BOUNDARY (RTTI::MainBoundary)
14
-
15
- int main(int argc, char * argv[]) {
16
- Catch::Session session;
17
- return session.run (argc, argv);
18
- }
10
+ LANGULUS_RTTI_BOUNDARY (RTTI::MainBoundary)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
// /
6
6
// / SPDX-License-Identifier: GPL-3.0-or-later
7
7
// /
8
- #include " Main.hpp"
9
8
#include < Langulus/Input.hpp>
10
- #include < catch2/catch .hpp>
9
+ #include < Langulus/Testing .hpp>
11
10
12
11
13
- // / See https://github.com/catchorg/Catch2/blob/devel/docs/tostring.md
14
- CATCH_TRANSLATE_EXCEPTION (::Langulus::Exception const & ex) {
15
- const Text serialized {ex};
16
- return ::std::string {Token {serialized}};
17
- }
18
-
19
12
SCENARIO (" Input handler creation" , " [input]" ) {
20
13
static Allocator::State memoryState;
21
14
You can’t perform that action at this time.
0 commit comments