diff --git a/Project/CMake/MediaInfoLibConfig.cmake.in b/Project/CMake/MediaInfoLibConfig.cmake.in new file mode 100644 index 0000000..cf05a8b --- /dev/null +++ b/Project/CMake/MediaInfoLibConfig.cmake.in @@ -0,0 +1,42 @@ +# known at buildtime +set(MediaInfoLib_VERSION "@MediaInfoLib_VERSION@") +set(MediaInfoLib_VERSION_MAJOR @MediaInfoLib_MAJOR_VERSION@) +set(MediaInfoLib_VERSION_MINOR @MediaInfoLib_MINOR_VERSION@) +set(MediaInfoLib_VERSION_PATCH @MediaInfoLib_PATCH_VERSION@) +set(MediaInfoLib_FOUND TRUE) + +get_filename_component(currentDir ${CMAKE_CURRENT_LIST_FILE} PATH) # get the directory where I myself am + +if(NOT TARGET mediainfo) + include(${currentDir}/MediaInfoLibTargets.cmake) +endif() + +set(MediaInfoLib_LIBRARY mediainfo) +# known at buildtime +set(MediaInfoLib_VERSION "@MediaInfoLib_VERSION@") +set(MediaInfoLib_VERSION_MAJOR @MediaInfoLib_MAJOR_VERSION@) +set(MediaInfoLib_VERSION_MINOR @MediaInfoLib_MINOR_VERSION@) +set(MediaInfoLib_VERSION_PATCH @MediaInfoLib_PATCH_VERSION@) +set(MediaInfoLib_FOUND TRUE) + +get_filename_component(currentDir ${CMAKE_CURRENT_LIST_FILE} PATH) # get the directory where I myself am + +if(NOT TARGET mediainfo) + include(${currentDir}/MediaInfoLibTargets.cmake) +endif() + +set(MediaInfoLib_LIBRARY mediainfo) +# known at buildtime +set(MediaInfoLib_VERSION "@MediaInfoLib_VERSION@") +set(MediaInfoLib_VERSION_MAJOR @MediaInfoLib_MAJOR_VERSION@) +set(MediaInfoLib_VERSION_MINOR @MediaInfoLib_MINOR_VERSION@) +set(MediaInfoLib_VERSION_PATCH @MediaInfoLib_PATCH_VERSION@) +set(MediaInfoLib_FOUND TRUE) + +get_filename_component(currentDir ${CMAKE_CURRENT_LIST_FILE} PATH) # get the directory where I myself am + +if(NOT TARGET mediainfo) + include(${currentDir}/MediaInfoLibTargets.cmake) +endif() + +set(MediaInfoLib_LIBRARY mediainfo) diff --git a/Project/CMake/cmake_uninstall.cmake.in b/Project/CMake/cmake_uninstall.cmake.in new file mode 100644 index 0000000..212ac74 --- /dev/null +++ b/Project/CMake/cmake_uninstall.cmake.in @@ -0,0 +1,51 @@ +if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") +endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + +file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) +string(REGEX REPLACE "\n" ";" files "${files}") +foreach(file ${files}) + message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") + exec_program( + "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + OUTPUT_VARIABLE rm_out + RETURN_VALUE rm_retval + ) + if(NOT "${rm_retval}" STREQUAL 0) + message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") + endif(NOT "${rm_retval}" STREQUAL 0) +endforeach(file) +if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") +endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + +file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) +string(REGEX REPLACE "\n" ";" files "${files}") +foreach(file ${files}) + message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") + exec_program( + "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + OUTPUT_VARIABLE rm_out + RETURN_VALUE rm_retval + ) + if(NOT "${rm_retval}" STREQUAL 0) + message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") + endif(NOT "${rm_retval}" STREQUAL 0) +endforeach(file) +if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") +endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + +file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) +string(REGEX REPLACE "\n" ";" files "${files}") +foreach(file ${files}) + message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") + exec_program( + "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + OUTPUT_VARIABLE rm_out + RETURN_VALUE rm_retval + ) + if(NOT "${rm_retval}" STREQUAL 0) + message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") + endif(NOT "${rm_retval}" STREQUAL 0) +endforeach(file) diff --git a/Project/CMake/libmediainfo.pc.in b/Project/CMake/libmediainfo.pc.in new file mode 100644 index 0000000..2a5558f --- /dev/null +++ b/Project/CMake/libmediainfo.pc.in @@ -0,0 +1,11 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=@LIB_INSTALL_DIR@ +includedir=@INCLUDE_INSTALL_DIR@ + +Name: libmediainfo +Version: @MediaInfoLib_VERSION@ +Description: MediaInfoLib +Libs: -L${libdir} -lmediainfo +Cflags: -I${includedir} +Requires: libzen