diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-10-09 11:30:38 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-10-09 11:30:38 +0200 |
| commit | b82886a94a5e92b4e78898d327a991cbe5423d43 (patch) | |
| tree | 9b1cb7f75dae4583e701bd2709f57ef6b9a41b25 | |
| parent | 4779955abfbe17cb3ecfed153192d33d78ec2ebd (diff) | |
Fix installation for thumbnail
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | thumbnail/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | thumbnail/Makefile | 4 |
3 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ef31a03..a9db22c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,5 +46,4 @@ add_subdirectory(doc) if(THUMBNAIL) add_subdirectory(thumbnail) - install(TARGETS thumbnail) endif() diff --git a/thumbnail/CMakeLists.txt b/thumbnail/CMakeLists.txt index d4edf8d..85e8951 100644 --- a/thumbnail/CMakeLists.txt +++ b/thumbnail/CMakeLists.txt @@ -6,3 +6,4 @@ 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) +install(TARGETS ${PROJECT_NAME}) diff --git a/thumbnail/Makefile b/thumbnail/Makefile index 2d7b100..4ed1944 100644 --- a/thumbnail/Makefile +++ b/thumbnail/Makefile @@ -1,6 +1,7 @@ .POSIX: PROJECT = thumbnail +PREFIX = /usr/local O = -Og CDEFS = -D_FILE_OFFSET_BITS=64 # Required for large file support on 32-bit. CFLAGS = $(O) $(CDEFS) -g -Wall -I../libweb/dynstr/include -I. \ @@ -17,6 +18,9 @@ OBJECTS = \ all: $(PROJECT) +install: all + cp thumbnail $(PREFIX)/bin/ + clean: rm -f $(OBJECTS) $(DEPS) |
