mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-22 07:54:18 +01:00
e7364263b2
Compatibility with versions prior to 2.8.12 is being deprecated, resulting in build warning messages. The minimum for the official supported distros is 3.7.2 (Stretch), so the version could be moved forward when newer features are required. Reference: https://cmake.org/cmake/help/v3.19/release/3.19.html#deprecated-and-removed-features
32 lines
749 B
CMake
32 lines
749 B
CMake
cmake_minimum_required(VERSION 3.0.0)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wall --std=c++0x")
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
include_directories(${GLIB_INCLUDE_DIRS})
|
|
include_directories(${GOBJECT_INCLUDE_DIRS})
|
|
include_directories(${GSTREAMER_INCLUDE_DIRS})
|
|
include_directories(${FFTW3_INCLUDE_DIR})
|
|
|
|
set(SOURCES
|
|
gstfastspectrum.cpp
|
|
plugin.cpp
|
|
)
|
|
|
|
add_library(gstmoodbar STATIC
|
|
${SOURCES}
|
|
)
|
|
|
|
target_link_libraries(gstmoodbar
|
|
${GOBJECT_LIBRARIES}
|
|
${GLIB_LIBRARIES}
|
|
${GSTREAMER_LIBRARIES}
|
|
${GSTREAMER_AUDIO_LIBRARIES}
|
|
${GSTREAMER_BASE_LIBRARIES}
|
|
${FFTW3_FFTW_LIBRARY}
|
|
)
|
|
|
|
target_link_libraries(gstmoodbar Qt5::Core)
|