diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 26 |
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" +) |
