File 0001-CMakeLists.txt-add-missing-install-command.patch of Package k2pdfopt

From c994d58a7d0988b9e208cc1181fe6a4f4590798a Mon Sep 17 00:00:00 2001
From: yangfl <yangfl@users.noreply.github.com>
Date: Mon, 7 Jan 2019 16:47:43 +0800
Subject: [PATCH 01/11] CMakeLists.txt: add missing install command

---
 CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 365b835b0df6..9ad17937922a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -122,6 +122,7 @@ configure_file (
   "${PROJECT_SOURCE_DIR}/config.h.in"
   "${PROJECT_BINARY_DIR}/config.h"
 )
+include_directories(${PROJECT_BINARY_DIR})
 
 add_subdirectory(willuslib)
 add_subdirectory(k2pdfoptlib)
@@ -130,6 +131,7 @@ add_subdirectory(k2pdfoptlib)
 add_executable(k2pdfopt k2pdfopt.c)
 target_link_libraries (k2pdfopt k2pdfoptlib willuslib ${K2PDFOPT_LIB} pthread)
 
+install(TARGETS k2pdfopt RUNTIME DESTINATION bin)
 
 message("")
 message("-- Summary --")
-- 
2.43.0

openSUSE Build Service is sponsored by