We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7403e9e commit 04acabaCopy full SHA for 04acaba
1 file changed
CMakeLists.txt
@@ -0,0 +1,23 @@
1
+# Specify the minimum version of CMake required
2
+cmake_minimum_required(VERSION 3.10)
3
+
4
+# Project name and version
5
+project(FileMonitorDaemon VERSION 1.0)
6
7
+# Set the C++ standard
8
+set(CMAKE_CXX_STANDARD 17)
9
+set(CMAKE_CXX_STANDARD_REQUIRED True)
10
11
+# Find pthread library
12
+find_package(Threads REQUIRED)
13
14
+# Add the executable, including the source files from the src/ directory
15
+add_executable(file_monitor_daemon
16
+ src/file_owl.cpp
17
+)
18
19
+# Link the pthread library
20
+target_link_libraries(file_monitor_daemon Threads::Threads)
21
22
+# Optionally, set install rules if needed
23
+install(TARGETS Linux-FileOwl DESTINATION /usr/local/bin)
0 commit comments