summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2021-01-21 14:30:27 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2021-01-22 20:24:28 +0100
commit5438f65859e63a00d55766be69f01a9588c9ab33 (patch)
treea7fca263c2ea9498dc8c8c56566cf67e16656795 /cmake
parent532fe4fa60bfb0f57de33e564cc7ac7707a5c96a (diff)
CMake: Rename FindRubberband.cmake module
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindRubberband.cmake86
-rw-r--r--cmake/modules/Findrubberband.cmake86
2 files changed, 86 insertions, 86 deletions
diff --git a/cmake/modules/FindRubberband.cmake b/cmake/modules/FindRubberband.cmake
deleted file mode 100644
index 3634ce7906..0000000000
--- a/cmake/modules/FindRubberband.cmake
+++ /dev/null
@@ -1,86 +0,0 @@
-# This file is part of Mixxx, Digital DJ'ing software.
-# Copyright (C) 2001-2020 Mixxx Development Team
-# Distributed under the GNU General Public Licence (GPL) version 2 or any later
-# later version. See the LICENSE file for details.
-
-#[=======================================================================[.rst:
-FindRubberband
---------------
-
-Finds the Rubberband library.
-
-Imported Targets
-^^^^^^^^^^^^^^^^
-
-This module provides the following imported targets, if found:
-
-``Rubberband::Rubberband``
- The Rubberband library
-
-Result Variables
-^^^^^^^^^^^^^^^^
-
-This will define the following variables:
-
-``Rubberband_FOUND``
- True if the system has the Rubberband library.
-``Rubberband_INCLUDE_DIRS``
- Include directories needed to use Rubberband.
-``Rubberband_LIBRARIES``
- Libraries needed to link to Rubberband.
-``Rubberband_DEFINITIONS``
- Compile definitions needed to use Rubberband.
-
-Cache Variables
-^^^^^^^^^^^^^^^
-
-The following cache variables may also be set:
-
-``Rubberband_INCLUDE_DIR``
- The directory containing ``rubberband/RubberBandStretcher.h``.
-``Rubberband_LIBRARY``
- The path to the Rubberband library.
-
-#]=======================================================================]
-
-find_package(PkgConfig QUIET)
-if(PkgConfig_FOUND)
- pkg_check_modules(PC_Rubberband QUIET rubberband)
-endif()
-
-find_path(Rubberband_INCLUDE_DIR
- NAMES rubberband/RubberBandStretcher.h
- PATHS ${PC_Rubberband_INCLUDE_DIRS}
- DOC "Rubberband include directory")
-mark_as_advanced(Rubberband_INCLUDE_DIR)
-
-find_library(Rubberband_LIBRARY
- NAMES rubberband rubberband-library rubberband-dll
- PATHS ${PC_Rubberband_LIBRARY_DIRS}
- DOC "Rubberband library"
-)
-mark_as_advanced(Rubberband_LIBRARY)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(
- Rubberband
- DEFAULT_MSG
- Rubberband_LIBRARY
- Rubberband_INCLUDE_DIR
-)
-
-if(Rubberband_FOUND)
- set(Rubberband_LIBRARIES "${Rubberband_LIBRARY}")
- set(Rubberband_INCLUDE_DIRS "${Rubberband_INCLUDE_DIR}")
- set(Rubberband_DEFINITIONS ${PC_Rubberband_CFLAGS_OTHER})
-
- if(NOT TARGET Rubberband::Rubberband)
- add_library(Rubberband::Rubberband UNKNOWN IMPORTED)
- set_target_properties(Rubberband::Rubberband
- PROPERTIES
- IMPORTED_LOCATION "${Rubberband_LIBRARY}"
- INTERFACE_COMPILE_OPTIONS "${PC_Rubberband_CFLAGS_OTHER}"
- INTERFACE_INCLUDE_DIRECTORIES "${Rubberband_INCLUDE_DIR}"
- )
- endif()
-endif()
diff --git a/cmake/modules/Findrubberband.cmake b/cmake/modules/Findrubberband.cmake
new file mode 100644
index 0000000000..7de7d2efd6
--- /dev/null
+++ b/cmake/modules/Findrubberband.cmake
@@ -0,0 +1,86 @@
+# This file is part of Mixxx, Digital DJ'ing software.
+# Copyright (C) 2001-2020 Mixxx Development Team
+# Distributed under the GNU General Public Licence (GPL) version 2 or any later
+# later version. See the LICENSE file for details.
+
+#[=======================================================================[.rst:
+Findrubberband
+--------------
+
+Finds the rubberband library.
+
+Imported Targets
+^^^^^^^^^^^^^^^^
+
+This module provides the following imported targets, if found:
+
+``rubberband::rubberband``
+ The rubberband library
+
+Result Variables
+^^^^^^^^^^^^^^^^
+
+This will define the following variables:
+
+``rubberband_FOUND``
+ True if the system has the rubberband library.
+``rubberband_INCLUDE_DIRS``
+ Include directories needed to use rubberband.
+``rubberband_LIBRARIES``
+ Libraries needed to link to rubberband.
+``rubberband_DEFINITIONS``
+ Compile definitions needed to use rubberband.
+
+Cache Variables
+^^^^^^^^^^^^^^^
+
+The following cache variables may also be set:
+
+``rubberband_INCLUDE_DIR``
+ The directory containing ``rubberband/RubberBandStretcher.h``.
+``rubberband_LIBRARY``
+ The path to the rubberband library.
+
+#]=======================================================================]
+
+find_package(PkgConfig QUIET)
+if(PkgConfig_FOUND)
+ pkg_check_modules(PC_rubberband QUIET rubberband)
+endif()
+
+find_path(rubberband_INCLUDE_DIR
+ NAMES rubberband/RubberBandStretcher.h
+ PATHS ${PC_rubberband_INCLUDE_DIRS}
+ DOC "rubberband include directory")
+mark_as_advanced(rubberband_INCLUDE_DIR)
+
+find_library(rubberband_LIBRARY
+ NAMES rubberband rubberband-library rubberband-dll
+ PATHS ${PC_rubberband_LIBRARY_DIRS}
+ DOC "rubberband library"
+)
+mark_as_advanced(rubberband_LIBRARY)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(
+ rubberband
+ DEFAULT_MSG
+ rubberband_LIBRARY
+ rubberband_INCLUDE_DIR
+)
+
+if(rubberband_FOUND)
+ set(rubberband_LIBRARIES "${rubberband_LIBRARY}")
+ set(rubberband_INCLUDE_DIRS "${rubberband_INCLUDE_DIR}")
+ set(rubberband_DEFINITIONS ${PC_rubberband_CFLAGS_OTHER})
+
+ if(NOT TARGET rubberband::rubberband)
+ add_library(rubberband::rubberband UNKNOWN IMPORTED)
+ set_target_properties(rubberband::rubberband
+ PROPERTIES
+ IMPORTED_LOCATION "${rubberband_LIBRARY}"
+ INTERFACE_COMPILE_OPTIONS "${PC_rubberband_CFLAGS_OTHER}"
+ INTERFACE_INCLUDE_DIRECTORIES "${rubberband_INCLUDE_DIR}"
+ )
+ endif()
+endif()