Skip to content

Commit 04acaba

Browse files
Create CMakeLists.txt
++added CMakeLists.txt
1 parent 7403e9e commit 04acaba

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)