diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-23 00:31:17 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-09-24 11:03:39 +0200 |
| commit | b9537b1d1164b9f3fbe704512b1e324c2e37beb5 (patch) | |
| tree | a2538bd8698b208431fa85a3f65cd8bafbf0bbeb /thumbnail/CMakeLists.txt | |
| parent | 7407ddf0162cc32fee03a309186588047a65f42a (diff) | |
| download | slcl-b9537b1d1164b9f3fbe704512b1e324c2e37beb5.tar.gz | |
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/.
Diffstat (limited to 'thumbnail/CMakeLists.txt')
| -rw-r--r-- | thumbnail/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
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) |
