added cmakelists

This commit is contained in:
zombie maniac 2022-03-02 08:50:19 -05:00
parent 80e6ca1a8a
commit 91ea045e9d
Signed by: nbrooks211
GPG key ID: F43C85C0DF0C334E
3 changed files with 21 additions and 0 deletions

2
.gitignore vendored
View file

@ -52,3 +52,5 @@ Module.symvers
Mkfile.old
dkms.conf
# build folder
build/**

19
CMakeLists.txt Normal file
View file

@ -0,0 +1,19 @@
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)