Files
padlab/CMakeLists.txt
a dinosaur 30cd5911a5 Delete maths.c
static inlines shouldn't need an external definition if I understand correctly, and that's all this file contains
2022-11-16 01:45:25 +11:00

17 lines
379 B
CMake

cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(padlab C)
set(CMAKE_C_STANDARD 99)
set(TARGET padlab)
set(SOURCES
maths.h
draw.c draw.h
stick.c stick.h
analogue.c)
find_package(SDL2 REQUIRED)
add_executable(${TARGET} ${SOURCES})
target_link_libraries(${TARGET} SDL2::SDL2 m)
target_compile_options(${TARGET} PRIVATE
-Wall -Wextra -pedantic -Wno-unused-parameter)