]> git.lizzy.rs Git - nothing.git/blobdiff - CMakeLists.txt
Merge pull request #80 from tsoding/link-todos
[nothing.git] / CMakeLists.txt
index 5779f3540f0a610d7c6c6d5ee886417c741de3b6..df3b928396da4435218af306874b846a220dc400 100644 (file)
@@ -20,6 +20,13 @@ set(SOURCE_FILES
   src/rect.c
   src/point.c
   src/camera.c
+  src/error.c
+  src/game.c
+  src/lt.c
+  src/lt/lt_slot.c
+  src/level.c
+  src/goals.c
+  src/renderer.c
 )
 
 set(HEADER_FILES
@@ -28,13 +35,46 @@ set(HEADER_FILES
   src/rect.h
   src/point.h
   src/camera.h
+  src/error.h
+  src/game.h
+  src/lt.h
+  src/lt/lt_slot.h
+  src/level.h
+  src/goals.h
+  src/renderer.h
 )
 
 add_executable(nothing ${SOURCE_FILES} ${HEADER_FILES})
 target_link_libraries(nothing ${SDL2_LIBRARY})
 
 if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "CLANG"))
-  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -pedantic -Wconversion -std=c11")
+  set(CMAKE_C_FLAGS
+    "${CMAKE_C_FLAGS} \
+     -Wall \
+     -Werror \
+     -Wextra \
+     -Wconversion \
+     -Wunused \
+     -Wunused-function \
+     -Wunused-label \
+     -Wunused-macros \
+     -Wunused-parameter \
+     -Wunused-value \
+     -Wunused-variable \
+     -Wcast-align \
+     -Wcast-qual \
+     -Wmissing-declarations \
+     -Wredundant-decls \
+     -Wmissing-prototypes \
+     -Wnested-externs \
+     -Wpointer-arith \
+     -Wshadow \
+     -Wstrict-prototypes \
+     -Wwrite-strings \
+     -fno-common \
+     -pedantic \
+     -std=c11 \
+     -O3")
   target_link_libraries(nothing m)
 endif()
 if(WIN32)