Compare commits

...

2 commits

Author SHA1 Message Date
e1e3302653
added some flags for the build 2022-03-04 00:07:05 -05:00
52c55c07f0
switched to meson bc @quantum likes it more
i myself find it better and less gay than cmake
like cmake seems more for cpp (it still works with both)
meanwhile meson *feels* like it supports both equally
2022-03-03 01:18:26 -05:00
4 changed files with 11 additions and 19 deletions

2
.gitignore vendored
View file

@ -54,3 +54,5 @@ dkms.conf
# build folder
build/**
builddir/**

View file

@ -1,19 +0,0 @@
cmake_minimum_required(VERSION 3.10)
project(playergame C)
set(CMAKE_CXX_STANDARD 99)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
include_directories(src)
add_definitions(-g)
add_definitions(-p)
# add_definitions(-s)
# add_definitions(-fsanitize=address)
file(GLOB SOURCES "src/*.c" "src/**/*.c")
add_executable(${CMAKE_PROJECT_NAME} ${SOURCES})
target_link_libraries(${CMAKE_PROJECT_NAME} curses)
target_link_options(${CMAKE_PROJECT_NAME} PRIVATE -fsanitize=address)

9
meson.build Normal file
View file

@ -0,0 +1,9 @@
project('playergame', 'c',
default_options: [
'c_std=c99',
'c_flags=-Wall -Werror -Wextra -g'
]
)
cursesdep = dependency('curses')
executable('playergame', 'src/main.c', dependencies: cursesdep)