diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-10-22 08:31:46 +0200 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-10-22 08:31:46 +0200 |
commit | e588e1707f5aceddb61da9c64a97f32e82b44881 (patch) | |
tree | f18242ebe00e8cf5fa4cea8119299d97306affcc /CMakeLists.txt | |
parent | 0d06fb2e18c7e42b7777e3c111a0ed45e0bdab86 (diff) | |
download | libADLMIDI-e588e1707f5aceddb61da9c64a97f32e82b44881.tar.gz libADLMIDI-e588e1707f5aceddb61da9c64a97f32e82b44881.tar.bz2 libADLMIDI-e588e1707f5aceddb61da9c64a97f32e82b44881.zip |
Provide pkg-config support
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c2b79bb..c265bd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required (VERSION 3.2) -project (libADLMIDI C CXX) +project (libADLMIDI VERSION 1.4.0 LANGUAGES C CXX) include(GNUInstallDirs) @@ -580,6 +580,10 @@ install(FILES include/adlmidi.hpp DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") +configure_file(libADLMIDI.pc.in libADLMIDI.pc @ONLY) +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libADLMIDI.pc" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") + option(WITH_UNIT_TESTS "Enable unit testing" OFF) if(WITH_UNIT_TESTS) enable_testing() |