1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-26 08:13:17 +01:00
strawberry-audio-player-win.../ext/gstmoodbar/CMakeLists.txt

33 lines
1000 B
CMake
Raw Normal View History

2019-04-18 15:03:01 +02:00
cmake_minimum_required(VERSION 2.8.11)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_STANDARD 11)
2019-07-08 21:59:07 +02:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -U__STRICT_ANSI__ -Wall -Woverloaded-virtual -Wno-sign-compare -fpermissive")
2019-04-18 15:03:01 +02:00
2019-09-15 20:27:32 +02:00
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra -Wpedantic")
2019-09-15 20:27:32 +02:00
endif()
2019-04-18 15:03:01 +02:00
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})
2019-06-12 06:34:59 +02:00
include_directories(${GSTREAMER_AUDIO_INCLUDE_DIRS})
2019-04-18 15:03:01 +02:00
include_directories(${FFTW3_INCLUDE_DIR})
set(SOURCES gstfastspectrum.cpp gstmoodbarplugin.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)