From b9537b1d1164b9f3fbe704512b1e324c2e37beb5 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 23 Jul 2023 00:31:17 +0200 Subject: Add thumbnail generation tool This new application runs separately from slcl and communicates with it via a named pipe. When files are added/removed to/from the user directory, slcl shall write to the named pipe. Then, this new tool shall process incoming entries and generate or remove thumbnails accordingly. Such thumbnails are stored into a new directory inside the database directory, namely thumbnails/, which replicates the same structure as user/. --- thumbnail/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 thumbnail/CMakeLists.txt (limited to 'thumbnail/CMakeLists.txt') diff --git a/thumbnail/CMakeLists.txt b/thumbnail/CMakeLists.txt new file mode 100644 index 0000000..9df2f34 --- /dev/null +++ b/thumbnail/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.13) +project(thumbnail) +add_executable(${PROJECT_NAME} cftw.c crealpath.c main.c) +add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../libweb/dynstr + ${CMAKE_BINARY_DIR}/dynstr) +target_include_directories(${PROJECT_NAME} PRIVATE ..) +target_compile_definitions(${PROJECT_NAME} PRIVATE _FILE_OFFSET_BITS=64) +include(FindPkgConfig) +pkg_check_modules(ImageMagick REQUIRED IMPORTED_TARGET ImageMagick) +target_link_libraries(${PROJECT_NAME} PRIVATE dynstr PkgConfig::ImageMagick) -- cgit v1.2.3