First build that actually works. SDL_main errors before but didn't figure out the cause.

This commit is contained in:
Zed A. Shaw 2025-01-02 11:47:02 -05:00
commit 6b181382bd
21 changed files with 2853 additions and 0 deletions

27
meson.build Normal file
View file

@ -0,0 +1,27 @@
project('lodecaster', 'cpp',
default_options: ['cpp_std=c++20'])
catch2 = dependency('catch2-with-main')
fmt = dependency('fmt')
json = dependency('nlohmann_json')
sdl2 = dependency('sdl2')
sdl2_main = dependency('sdl2main')
dependencies = [
sdl2, sdl2_main,
fmt, json
]
executable('runtests', [
'quickcg.cpp',
'main.cpp',
],
win_subsystem: 'windows',
dependencies: dependencies)
executable('lodecaster', [
'quickcg.cpp',
'raycaster_flat.cpp',
],
win_subsystem: 'windows',
dependencies: dependencies)