]> git.lizzy.rs Git - nothing.git/blob - CMakeLists.txt
Merge pull request #14 from tsoding/joystick
[nothing.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.2)
2 project(nothing)
3
4 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
5
6 find_package(SDL2 REQUIRED)
7
8 include_directories(${SDL2_INCLUDE_DIR})
9
10 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -pedantic -Wconversion -std=c11")
11
12 set(SOURCE_FILES
13   src/main.c
14   src/player.c
15   src/platforms.c
16   src/rect.c
17 )
18
19 set(HEADER_FILES
20   src/player.h
21   src/platforms.h
22   src/rect.h
23 )
24
25 add_executable(nothing ${SOURCE_FILES} ${HEADER_FILES})
26 target_link_libraries(nothing ${SDL2_LIBRARY} m)