Commit 0c725091 authored by Ghislain MARY's avatar Ghislain MARY

Improve CMake config-file package.

parent 743cc896
......@@ -29,13 +29,11 @@
include("${CMAKE_CURRENT_LIST_DIR}/Matroska2Targets.cmake")
get_filename_component(MATROSKA2_CMAKE_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
set(MATROSKA2_INCLUDE_DIRS
${MATROSKA2_CMAKE_DIR}/../../../${CMAKE_INSTALL_INCLUDEDIR}
)
if(@ENABLE_SHARED@)
set(MATROSKA2_LIBRARIES matroska2)
else()
set(MATROSKA2_LIBRARIES matroska2-static)
get_target_property(MATROSKA2_LIBRARIES matroska2-static LOCATION)
endif()
set(MATROSKA2_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
set(MATROSKA2_FOUND 1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment