|
0 |
Index: libpolyclipping/cpp/CMakeLists.txt
|
|
1 |
===================================================================
|
|
2 |
--- libpolyclipping.orig/cpp/CMakeLists.txt 2018-12-03 08:49:58.000000000 +0100
|
|
3 |
+++ libpolyclipping/cpp/CMakeLists.txt 2018-12-04 18:04:51.843773588 +0100
|
|
4 |
@@ -1,11 +1,9 @@
|
|
5 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
|
|
6 |
PROJECT(polyclipping)
|
|
7 |
|
|
8 |
+INCLUDE(GNUInstallDirs)
|
|
9 |
+
|
|
10 |
SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "Release type")
|
|
11 |
-# The header name clipper.hpp is too generic, so install in a subdirectory
|
|
12 |
-SET(CMAKE_INSTALL_INCDIR "${CMAKE_INSTALL_PREFIX}/include/polyclipping")
|
|
13 |
-SET(CMAKE_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
|
|
14 |
-SET(CMAKE_INSTALL_PKGCONFIGDIR "${CMAKE_INSTALL_PREFIX}/share/pkgconfig")
|
|
15 |
SET(PCFILE "${CMAKE_CURRENT_BINARY_DIR}/polyclipping.pc")
|
|
16 |
|
|
17 |
SET(BUILD_SHARED_LIBS ON CACHE BOOL
|
|
18 |
@@ -14,8 +12,8 @@
|
|
19 |
|
|
20 |
CONFIGURE_FILE (polyclipping.pc.cmakein "${PCFILE}" @ONLY)
|
|
21 |
|
|
22 |
-INSTALL (FILES clipper.hpp DESTINATION "${CMAKE_INSTALL_INCDIR}")
|
|
23 |
+INSTALL (FILES clipper.hpp DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/polyclipping")
|
|
24 |
INSTALL (TARGETS polyclipping LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
|
25 |
-INSTALL (FILES "${PCFILE}" DESTINATION "${CMAKE_INSTALL_PKGCONFIGDIR}")
|
|
26 |
+INSTALL (FILES "${PCFILE}" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
|
27 |
|
|
28 |
SET_TARGET_PROPERTIES(polyclipping PROPERTIES VERSION 22.0.0 SOVERSION 22 )
|
|
29 |
Index: libpolyclipping/cpp/polyclipping.pc.cmakein
|
|
30 |
===================================================================
|
|
31 |
--- libpolyclipping.orig/cpp/polyclipping.pc.cmakein 2018-12-03 08:49:58.000000000 +0100
|
|
32 |
+++ libpolyclipping/cpp/polyclipping.pc.cmakein 2018-12-03 08:50:03.000000000 +0100
|
|
33 |
@@ -2,7 +2,7 @@
|
|
34 |
exec_prefix=@CMAKE_INSTALL_PREFIX@
|
|
35 |
libdir=@CMAKE_INSTALL_LIBDIR@
|
|
36 |
sharedlibdir=@CMAKE_INSTALL_LIBDIR@
|
|
37 |
-includedir=@CMAKE_INSTALL_INCDIR@
|
|
38 |
+includedir=@CMAKE_INSTALL_INCLUDEDIR@
|
|
39 |
|
|
40 |
Name: polyclipping
|
|
41 |
Description: polygon clipping library
|