summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authordario-loi <loi.1940849@studenti.uniroma1.it>2024-11-24 20:09:43 +0100
committerdario-loi <loi.1940849@studenti.uniroma1.it>2024-11-24 20:09:43 +0100
commit274cacc5fadb3c3a220b833f027eee47cbda824c (patch)
tree57710b18aa488a42e9922adf70a3d7657d2c85a2 /CMakeLists.txt
parent064f53407750371bbe30c74d5abbb36255f7a5b0 (diff)
Worked on minor changes for warnings
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03453ef..02aa36d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,7 @@ include_directories(${FREETYPE2_INCLUDE_DIRS})
function(add_example NAME)
add_executable("${NAME}" "${EXAMPLES_DIR}/${NAME}.c" "${FBGL_HEADER}")
target_compile_features("${NAME}" PRIVATE c_std_99)
+ target_compile_options("${NAME}" PRIVATE -Wall -Wextra -Wpedantic)
target_include_directories("${NAME}" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries("${NAME}" PRIVATE ${FREETYPE2_LIBRARIES})
add_custom_target("run_${NAME}" COMMAND "${NAME}" VERBATIM)