diff --git a/mt32emu/CMakeLists.txt b/mt32emu/CMakeLists.txt index 6809649..246d77d 100644 --- a/mt32emu/CMakeLists.txt +++ b/mt32emu/CMakeLists.txt @@ -168,6 +168,8 @@ endforeach(HEADER) configure_file("src/config.h.in" "include/mt32emu/config.h") include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/mt32emu) +configure_file("src/mt32emu.pc.in" "mt32emu.pc" @ONLY) + if(${PROJECT_NAME}_WITH_INTERNAL_RESAMPLER) add_definitions(-DMT32EMU_WITH_INTERNAL_RESAMPLER) set(${PROJECT_NAME}_SOURCES ${${PROJECT_NAME}_SOURCES} @@ -264,6 +266,10 @@ if(NOT(libmt32emu_SHARED AND libmt32emu_PACKAGE_TYPE STREQUAL "Devel")) AUTHORS.txt COPYING.txt COPYING.LESSER.txt NEWS.txt README.md TODO.txt DESTINATION share/doc/munt/libmt32emu ) + install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/mt32emu.pc + DESTINATION ${LIB_INSTALL_DIR}/pkgconfig + ) endif() # Locations are exported for the benefit of a higher-level CMakeLists.txt. diff --git a/mt32emu/src/mt32emu.pc.in b/mt32emu/src/mt32emu.pc.in new file mode 100644 index 0000000..5bc630f --- /dev/null +++ b/mt32emu/src/mt32emu.pc.in @@ -0,0 +1,11 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=${exec_prefix}/@LIB_INSTALL_DIR@ +includedir=${prefix}/include + +Name: libmt32emu +URL: http://munt.sourceforge.net +Description: a C/C++ library which allows to emulate (approximately) the Roland MT-32, CM-32L and LAPC-I synthesiser modules +Version: @libmt32emu_VERSION@ +Libs: -L${libdir} -lmt32emu +Cflags: -I${includedir}/mt32emu