From e61e04619d0c9dd4d079532eff3483e234fc8acd Mon Sep 17 00:00:00 2001 From: hybrid Date: Mon, 24 Aug 2026 00:48:14 +0300 Subject: add: lesson{5,6}, CMakeLists.txt --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index eea0bfc..d37d042 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,8 +17,9 @@ foreach(SOURCE_FILE ${SOURCES}) # form target names (substitute '/' to '_', remove '.cpp') string(REPLACE "/" "_" TARGET_NAME ${REL_PATH}) string(REPLACE ".cpp" "" TARGET_NAME ${TARGET_NAME}) - + add_executable(${TARGET_NAME} ${SOURCE_FILE}) + target_compile_options(${TARGET_NAME} PRIVATE -Wall -Weffc++ -Wextra -Wpedantic ) -- cgit v1.3.1