Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
OpenSceneGraph
Commits
f2f22df8
Unverified
Commit
f2f22df8
authored
Mar 23, 2020
by
OpenSceneGraph git repository
Committed by
GitHub
Mar 23, 2020
Browse files
Merge pull request #930 from scttgs0/topic-pkgconfig-findpackage
Improve PkgConfig usage
parents
69d382d4
89450b7e
Changes
5
Hide whitespace changes
Inline
Side-by-side
CMakeModules/FindGTA.cmake
View file @
f2f22df8
...
...
@@ -8,14 +8,10 @@
# correspond to the ./configure --prefix=$GTA_DIR
# used in building libgta.
INCLUDE
(
Find
PkgConfig
OPTIONAL
)
find_package
(
PkgConfig
QUIET
)
IF
(
PKG_CONFIG_FOUND
)
INCLUDE
(
FindPkgConfig
)
PKG_CHECK_MODULES
(
GTA gta
)
ENDIF
(
PKG_CONFIG_FOUND
)
IF
(
NOT GTA_FOUND
)
...
...
@@ -54,4 +50,4 @@ IF(NOT GTA_FOUND)
SET
(
GTA_FOUND
"YES"
)
ENDIF
(
GTA_LIBRARIES AND GTA_INCLUDE_DIRS
)
ENDIF
(
NOT GTA_FOUND
)
\ No newline at end of file
ENDIF
(
NOT GTA_FOUND
)
CMakeModules/FindGtkGl.cmake
View file @
f2f22df8
#use pkg-config to find various modues
INCLUDE
(
Find
PkgConfig
OPTIONAL
)
find_package
(
PkgConfig
QUIET
)
IF
(
PKG_CONFIG_FOUND
)
INCLUDE
(
FindPkgConfig
)
PKG_CHECK_MODULES
(
GTK gtk+-2.0
)
IF
(
WIN32
)
...
...
CMakeModules/FindPoppler-glib.cmake
View file @
f2f22df8
#use pkg-config to find various modues
INCLUDE
(
Find
PkgConfig
OPTIONAL
)
find_package
(
PkgConfig
QUIET
)
IF
(
PKG_CONFIG_FOUND
)
INCLUDE
(
FindPkgConfig
)
PKG_CHECK_MODULES
(
CAIRO cairo
)
PKG_CHECK_MODULES
(
POPPLER poppler-glib
)
...
...
CMakeModules/FindRSVG.cmake
View file @
f2f22df8
#use pkg-config to find various modues
INCLUDE
(
Find
PkgConfig
OPTIONAL
)
find_package
(
PkgConfig
QUIET
)
IF
(
PKG_CONFIG_FOUND
)
INCLUDE
(
FindPkgConfig
)
#Version 2.35 introduces the rsvg_cleanup function which is used
PKG_CHECK_MODULES
(
RSVG librsvg-2.0>=2.35
)
...
...
@@ -14,5 +11,4 @@ IF(PKG_CONFIG_FOUND)
SET
(
RSVG_FOUND FALSE
)
ENDIF
()
ENDIF
()
src/osgViewer/CMakeLists.txt
View file @
f2f22df8
...
...
@@ -185,7 +185,7 @@ ELSE()
ELSEIF
(
${
OSG_WINDOWING_SYSTEM
}
STREQUAL
"X11"
)
# X11 for everybody else
INCLUDE
(
Find
PkgConfig
OPTIONAL
)
find_package
(
PkgConfig
QUIET
)
IF
(
PKG_CONFIG_FOUND
)
PKG_CHECK_MODULES
(
XRANDR xrandr
)
...
...
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