mirror of
https://github.com/VARCem/munt.git
synced 2026-07-08 18:16:13 +00:00
Generate and install a pkg-config file (#43)
* Generate and install a pkg-config file * revised the pkg-config template some more
This commit is contained in:
committed by
GitHub
parent
f7a5ac8706
commit
030495a8d9
@@ -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.
|
||||
|
||||
11
mt32emu/src/mt32emu.pc.in
Normal file
11
mt32emu/src/mt32emu.pc.in
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user