aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2025-04-13 20:42:31 +1000
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2025-04-13 20:42:31 +1000
commit12ad6ebd615f57b7b1032953ab9ea9b29ca1bc87 (patch)
tree76e8ad4bb3d8d322e2bd3ba260e0a5de1c7f5ea9 /CMakeLists.txt
parent4d026618caf38124ed87fafe578798be37c127ed (diff)
Add ability to write userspace tests, update cmake build process
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..5c5b980
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,26 @@
+cmake_minimum_required(VERSION 3.14)
+
+project(root)
+
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
+add_subdirectory(src/)
+
+add_custom_target(run_test_fastmouse ALL
+ COMMAND "build/test_fastmouse"
+ DEPENDS test_fastmouse
+ COMMENT "Running fastmouse tests"
+)
+
+add_custom_target(build_kernel ALL
+ COMMAND "src/make_kernel.sh"
+ DEPENDS run_test_fastmouse
+ COMMENT "Testing linux kernel builds"
+)
+
+add_custom_target(generate_patch ALL
+ COMMAND "src/make_patch.sh"
+ DEPENDS build_kernel
+ COMMENT "Generating fastmouse.patch"
+)