aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-06-17 10:09:34 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-06-17 10:09:34 +0200
commitf47fda7c8061303c0762c6b11b5f916993ead7ca (patch)
tree405185c3c2d3706b7117061b5fa41af3ea2c0fca /CMakeLists.txt
parent9c09097156dc70315364d27e61daef19b2844139 (diff)
downloadttwhy-f47fda7c8061303c0762c6b11b5f916993ead7ca.tar.xz
ttwhy-f47fda7c8061303c0762c6b11b5f916993ead7ca.zip
lib: add basic tc attibute RAII type
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4eb75c1..3091b9e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,7 @@ target_sources("ttwhy-core" PUBLIC
FILES
"ttwhy/lib.cppm"
+ "ttwhy/scoped_attributes.cppm"
)
target_include_directories("ttwhy-core" PUBLIC
@@ -55,6 +56,13 @@ target_link_libraries("ttwhy-core" PUBLIC
"ext::asio"
)
+target_compile_options("ttwhy-core" PUBLIC
+ "$<$<CXX_COMPILER_ID:Clang,GNU>:-Wall>"
+ "$<$<CXX_COMPILER_ID:Clang,GNU>:-Wextra>"
+ "$<$<CXX_COMPILER_ID:Clang,GNU>:-Werror>"
+ "$<$<CXX_COMPILER_ID:Clang,GNU>:-pedantic-errors>"
+)
+
### Main Executable
add_executable("ttwhy")