aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-06 01:03:09 +0200
committerEgor Tensin <egor@tensin.name>2026-06-06 01:05:46 +0200
commit37e6d114d9b8624e36ffd0bdc8e37ede32dc7678 (patch)
treed9e8240427182071bb02ea321090689baceec54f /CMakeLists.txt
parentfix builds w/ modern MinGW (diff)
downloadaes-tools-37e6d114d9b8624e36ffd0bdc8e37ede32dc7678.tar.gz
aes-tools-37e6d114d9b8624e36ffd0bdc8e37ede32dc7678.zip
cmake: upgrade cmake-common, introduce new features, etc.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c86ea48..82b62c1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,9 +1,18 @@
-cmake_minimum_required(VERSION 3.8)
+# oldstable as of May '26
+# Plus, I'm pretty sure it's required for things like CONFIGURE_DEPENDS and
+# CMAKE_MSVC_RUNTIME_LIBRARY and stuff.
+cmake_minimum_required(VERSION 3.25)
project(aes_tools C CXX)
enable_testing()
-include(cmake/common.cmake)
+if (MSVC)
+ add_compile_options(/MP /W4)
+else()
+ add_compile_options(-Wall -Wextra)
+endif()
+
+add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX)
add_subdirectory(aes)
add_subdirectory(aesxx)