From dc8132e965d93200e6b2ad0ecedfc97373896db8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 22 Jul 2008 18:42:53 -0700 Subject: Add a pkg-config file to install on the system --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a43b250..a7c5c33c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -291,10 +291,22 @@ ENDIF() # This is always available SET(BACKENDS "${BACKENDS} WaveFile") +# Needed for openal.pc.in +SET(prefix ${CMAKE_INSTALL_PREFIX}) +SET(exec_prefix "\${prefix}") +SET(libdir "\${exec_prefix}/${LIB_INSTALL_DIR}") +SET(bindir "\${exec_prefix}/bin") +SET(includedir "\${prefix}/include") +SET(PACKAGE_VERSION "${LIB_VERSION}") + # End configuration CONFIGURE_FILE( "${OpenAL_SOURCE_DIR}/config.h.in" "${OpenAL_BINARY_DIR}/config.h") +CONFIGURE_FILE( + "${OpenAL_SOURCE_DIR}/admin/pkgconfig/openal.pc.in" + "${OpenAL_BINARY_DIR}/admin/pkgconfig/openal.pc" + @ONLY) ADD_DEFINITIONS(-DAL_BUILD_LIBRARY) @@ -325,6 +337,8 @@ INSTALL(FILES include/AL/al.h include/AL/alext.h DESTINATION include/AL ) +INSTALL(FILES "${OpenAL_BINARY_DIR}/admin/pkgconfig/openal.pc" + DESTINATION lib/pkgconfig) IF(EXAMPLES) ADD_EXECUTABLE(openal-info examples/openal-info.c) -- cgit v1.2.3