File bcmatroska2-include-subdir.patch of Package bcmatroska2
--- a/BcMatroska2Config.cmake.in
+++ b/BcMatroska2Config.cmake.in
@@ -34,6 +34,6 @@ if(@ENABLE_SHARED@)
else()
get_target_property(BCMATROSKA2_LIBRARIES bcmatroska2-static LOCATION)
endif()
-set(BCMATROSKA2_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
+set(BCMATROSKA2_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@/bcmatroska2")
set(BCMATROSKA2_FOUND 1)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,7 +73,7 @@ add_subdirectory(libebml2)
add_subdirectory(libmatroska2)
install(FILES ${CMAKE_BINARY_DIR}/config.h
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec
)
include(CMakePackageConfigHelpers)
--- a/corec/corec/CMakeLists.txt
+++ b/corec/corec/CMakeLists.txt
@@ -97,18 +97,18 @@ install(FILES
memalloc.h
memheap.h
portab.h
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec
)
-install(FILES array/array.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec/array)
-install(FILES helpers/charconvert/charconvert.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec/helpers/charconvert)
-install(FILES helpers/date/date.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec/helpers/date)
+install(FILES array/array.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec/array)
+install(FILES helpers/charconvert/charconvert.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec/helpers/charconvert)
+install(FILES helpers/date/date.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec/helpers/date)
install(FILES
helpers/file/file.h
helpers/file/streams.h
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec/helpers/file
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec/helpers/file
)
-install(FILES helpers/md5/md5.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec/helpers/md5)
+install(FILES helpers/md5/md5.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec/helpers/md5)
install(FILES
helpers/parser/buffer.h
helpers/parser/dataheap.h
@@ -118,16 +118,16 @@ install(FILES
helpers/parser/strtab.h
helpers/parser/strtypes.h
helpers/parser/urlpart.h
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec/helpers/parser
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec/helpers/parser
)
-install(FILES helpers/system/ccsystem.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec/helpers/system)
-install(FILES multithread/multithread.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec/multithread)
+install(FILES helpers/system/ccsystem.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec/helpers/system)
+install(FILES multithread/multithread.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec/multithread)
install(FILES
node/node.h
node/node_internal.h
node/nodebase.h
node/nodetools.h
node/nodetree.h
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec/node
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec/node
)
-install(FILES str/str.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/corec/str)
+install(FILES str/str.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2/corec/str)
--- a/libebml2/CMakeLists.txt
+++ b/libebml2/CMakeLists.txt
@@ -34,5 +34,5 @@ add_library(ebml2-objects OBJECT
set_target_properties(ebml2-objects PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
install(DIRECTORY ebml
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2
)
--- a/libmatroska2/CMakeLists.txt
+++ b/libmatroska2/CMakeLists.txt
@@ -76,5 +76,5 @@ if(ENABLE_SHARED)
endif()
install(DIRECTORY matroska
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/bcmatroska2
)