| |
@@ -0,0 +1,65 @@
|
| |
+ --- /dev/null 2021-08-16 07:57:53.740000000 -0400
|
| |
+ +++ utf8proc-2.6.1/utf8procConfig.cmake.in 2021-08-25 14:34:29.435497707 -0400
|
| |
+ @@ -0,0 +1,2 @@
|
| |
+ +# Targets
|
| |
+ +include(${CMAKE_CURRENT_LIST_DIR}/utf8procTargets.cmake)
|
| |
+ --- utf8proc-2.6.1/CMakeLists.txt.orig 2020-12-15 16:36:45.000000000 -0500
|
| |
+ +++ utf8proc-2.6.1/CMakeLists.txt 2021-08-25 14:35:40.847322932 -0400
|
| |
+ @@ -22,7 +22,8 @@
|
| |
+ )
|
| |
+
|
| |
+ # expose header path, for when this is part of a larger cmake project
|
| |
+ -target_include_directories(utf8proc PUBLIC .)
|
| |
+ +target_include_directories(utf8proc
|
| |
+ + PUBLIC $<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
|
| |
+
|
| |
+ if (BUILD_SHARED_LIBS)
|
| |
+ # Building shared library
|
| |
+ @@ -49,16 +50,40 @@
|
| |
+ SOVERSION ${SO_MAJOR}
|
| |
+ )
|
| |
+
|
| |
+ +include(CMakePackageConfigHelpers)
|
| |
+ +
|
| |
+ +configure_file(utf8procConfig.cmake.in
|
| |
+ + ${CMAKE_CURRENT_BINARY_DIR}/utf8procConfig.cmake @ONLY)
|
| |
+ +write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/utf8procConfigVersion.cmake
|
| |
+ + VERSION 2.6.1
|
| |
+ + COMPATIBILITY AnyNewerVersion)
|
| |
+ +
|
| |
+ +add_custom_target(run ALL
|
| |
+ + COMMAND touch libutf8proc.pc)
|
| |
+ +
|
| |
+ if (UTF8PROC_INSTALL)
|
| |
+ - install(TARGETS utf8proc
|
| |
+ + install(FILES "${PROJECT_SOURCE_DIR}/utf8proc.h" DESTINATION include)
|
| |
+ +
|
| |
+ + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libutf8proc.pc"
|
| |
+ + DESTINATION lib64/pkgconfig
|
| |
+ + )
|
| |
+ +
|
| |
+ + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/utf8procConfig.cmake
|
| |
+ + ${CMAKE_CURRENT_BINARY_DIR}/utf8procConfigVersion.cmake
|
| |
+ + DESTINATION lib64/cmake/utf8proc
|
| |
+ + )
|
| |
+ +
|
| |
+ + install(TARGETS utf8proc EXPORT utf8procTargets
|
| |
+ RUNTIME DESTINATION bin
|
| |
+ - LIBRARY DESTINATION lib
|
| |
+ - ARCHIVE DESTINATION lib)
|
| |
+ + LIBRARY DESTINATION ${LIB_INSTALL_DIR}
|
| |
+ + ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
|
| |
+ + )
|
| |
+ +
|
| |
+ + install(EXPORT utf8procTargets
|
| |
+ + DESTINATION "${LIB_INSTALL_DIR}/cmake/utf8proc"
|
| |
+ + NAMESPACE utf8proc::
|
| |
+ + )
|
| |
+
|
| |
+ - install(
|
| |
+ - FILES
|
| |
+ - "${PROJECT_SOURCE_DIR}/utf8proc.h"
|
| |
+ - DESTINATION include)
|
| |
+ endif()
|
| |
+
|
| |
+ if(UTF8PROC_ENABLE_TESTING)
|
| |
by dependent packages
I'm in the preliminary phase of adding apache ORC and apache arrow.
Both build with cmake only, and both need cmake style pkg info in
/usr/lib/cmake/utf8proc/