Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build-sys: Provide a simple CMake Config setup (similar to pkgconfig)
I'd rather not have to do this, as I don't really see the point in duplicating what is done in pkgconfig, but this is likely the easiest way to avoid nasty hacks.
- Loading branch information
Colin Guthrie
committed
Oct 19, 2011
1 parent
034006e
commit ce546b2
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(PULSEAUDIO_FOUND TRUE) | ||
|
||
set(PULSEAUDIO_VERSION_MAJOR @PA_MAJOR@) | ||
set(PULSEAUDIO_VERSION_MINOR @PA_MINOR@) | ||
set(PULSEAUDIO_VERSION @PA_MAJOR@.@PA_MINOR@) | ||
set(PULSEAUDIO_VERSION_STRING "@PA_MAJOR@.@PA_MINOR@") | ||
|
||
find_path(PULSEAUDIO_INCLUDE_DIR pulse/pulseaudio.h HINTS "@PA_INCDIR@") | ||
find_library(PULSEAUDIO_LIBRARY NAMES pulse libpulse HINTS "@PA_LIBDIR@") | ||
ifelse(@HAVE_GLIB20@, 1, dnl | ||
find_library(PULSEAUDIO_MAINLOOP_LIBRARY NAMES pulse-mainloop-glib libpulse-mainloop-glib HINTS "@PA_LIBDIR@") | ||
)dnl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
set(PACKAGE_VERSION @PA_MAJOR@.@PA_MINOR@) | ||
|
||
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) | ||
set(PACKAGE_VERSION_COMPATIBLE FALSE) | ||
else("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) | ||
set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}") | ||
set(PACKAGE_VERSION_EXACT TRUE) | ||
endif( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}") | ||
endif("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters