aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJP Cimalando <jpcima@users.noreply.github.com>2018-10-22 08:31:46 +0200
committerJP Cimalando <jpcima@users.noreply.github.com>2018-10-22 08:31:46 +0200
commite588e1707f5aceddb61da9c64a97f32e82b44881 (patch)
treef18242ebe00e8cf5fa4cea8119299d97306affcc /CMakeLists.txt
parent0d06fb2e18c7e42b7777e3c111a0ed45e0bdab86 (diff)
downloadlibADLMIDI-e588e1707f5aceddb61da9c64a97f32e82b44881.tar.gz
libADLMIDI-e588e1707f5aceddb61da9c64a97f32e82b44881.tar.bz2
libADLMIDI-e588e1707f5aceddb61da9c64a97f32e82b44881.zip
Provide pkg-config support
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
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()