Add extra warnings to CMake builds.
@@ -41,3 +41,9 @@ if(MSVC)
else()
set_property(TARGET TCOD PROPERTY OUTPUT_NAME tcod)
endif()
+
+if(MSVC)
+ target_compile_options(TCOD PRIVATE /W4)
+else()
+ target_compile_options(TCOD PRIVATE -Wall -Wextra)
+endif()
