Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Joao Oliveira
Okular
Commits
73ce3b48
Commit
73ce3b48
authored
Dec 16, 2008
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port to find_package(PkgConfig)
svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=897480
parent
cc45ce4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
cmake/modules/FindDjVuLibre.cmake
cmake/modules/FindDjVuLibre.cmake
+7
-6
No files found.
cmake/modules/FindDjVuLibre.cmake
View file @
73ce3b48
...
...
@@ -12,23 +12,24 @@ if (DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY)
else
(
DJVULIBRE_INCLUDE_DIR AND DJVULIBRE_LIBRARY
)
IF
(
NOT WIN32
)
include
(
Use
PkgConfig
)
find_package
(
PkgConfig
)
pkgconfig
(
ddjvuapi _ddjvuIncDir _ddjvuLinkDir ddjvuLinkFlags _ddjvuCflags
)
pkg_check_modules
(
PC_DJVULIBRE ddjvuapi
)
endif
(
NOT WIN32
)
if
(
_ddjvuIncDir
)
find_path
(
DJVULIBRE_INCLUDE_DIR libdjvu/ddjvuapi.h
${
_ddjvuIncDir
}
PATHS
${
PC_DJVULIBRE_INCLUDEDIR
}
${
PC_DJVULIBRE_INCLUDE_DIRS
}
${
GNUWIN32_DIR
}
/include
)
find_library
(
DJVULIBRE_LIBRARY NAMES djvulibre
PATHS
${
_ddjvuLinkDir
}
${
PC_DJVULIBRE_LIBDIR
}
${
PC_DJVULIBRE_LIBRARY_DIRS
}
${
GNUWIN32_DIR
}
/lib
)
endif
(
_ddjvuIncDir
)
include
(
FindPackageHandleStandardArgs
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
DjVuLibre DEFAULT_MSG DJVULIBRE_INCLUDE_DIR DJVULIBRE_LIBRARY
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment