diff options
Diffstat (limited to 'thumbnail')
| -rw-r--r-- | thumbnail/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | thumbnail/Makefile | 4 |
2 files changed, 5 insertions, 0 deletions
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) |
