2012-05-27 18:28:07 +02:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
set(CMAKE_C_FLAGS "-Wall")
|
|
|
|
set(CMAKE_CXX_FLAGS "-Woverloaded-virtual -Wall")
|
|
|
|
|
|
|
|
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
|
|
|
|
gstfftwspectrum.c
|
|
|
|
gstmoodbar.c
|
|
|
|
spectrum.c
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(gstmoodbar STATIC
|
|
|
|
${SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(gstmoodbar
|
|
|
|
${GOBJECT_LIBRARIES}
|
|
|
|
${GLIB_LIBRARIES}
|
|
|
|
${GSTREAMER_LIBRARIES}
|
|
|
|
${GSTREAMER_BASE_LIBRARIES}
|
2012-05-27 22:39:53 +02:00
|
|
|
${FFTW3_FFTW_LIBRARY}
|
2012-05-27 18:28:07 +02:00
|
|
|
)
|