Use in-house inotify watcher
Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
@@ -91,19 +91,6 @@ FetchContent_Declare(
|
||||
)
|
||||
FetchContent_MakeAvailable(cpptrace)
|
||||
|
||||
FetchContent_Declare(
|
||||
inotify-cpp
|
||||
GIT_REPOSITORY https://github.com/erikzenker/inotify-cpp.git
|
||||
GIT_TAG "v1.0.0"
|
||||
GIT_SHALLOW 1
|
||||
)
|
||||
set(BUILD_EXAMPLE OFF)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
set(BUILD_STATIC_LIBS ON)
|
||||
set(BUILD_TEST OFF)
|
||||
set(USE_BOOST_FILESYSTEM OFF)
|
||||
FetchContent_MakeAvailable(inotify-cpp)
|
||||
|
||||
add_subdirectory(vendor)
|
||||
|
||||
find_program(WAYLAND_SCANNER wayland-scanner REQUIRED)
|
||||
@@ -204,6 +191,7 @@ add_executable(waylight
|
||||
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/IconRegistry.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/Cache.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/InotifyWatcher.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/TextRenderer.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/ImGui.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/App.cpp
|
||||
@@ -235,7 +223,6 @@ target_link_libraries(waylight PRIVATE
|
||||
msdfgen::msdfgen-ext
|
||||
lunasvg::lunasvg
|
||||
SQLiteCpp
|
||||
inotify-cpp-static
|
||||
|
||||
m
|
||||
dl
|
||||
@@ -247,4 +234,3 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
|
||||
endif()
|
||||
|
||||
install(TARGETS waylight RUNTIME DESTINATION bin)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user