summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..3082957
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,12 @@
+cmake_minimum_required(VERSION 3.10)
+project(crackme-keygen LANGUAGES C)
+
+set(CMAKE_C_STANDARD "23")
+
+if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
+ set(CMAKE_C_FLAGS "/Wall")
+else()
+ set(CMAKE_C_FLAGS "-Wall -Wextra -Wconversion")
+endif()
+
+add_executable(crackme-keygen keygen.c)