aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Effect/soxr
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-01-11 16:45:50 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-01-11 16:45:50 +0000
commit4df195d1e578a597c9297a4631312ec3ea346545 (patch)
treec8e6180043d87c1d22d107ba08b6b1ca234691a9 /src/plugins/Effect/soxr
parent5d8ddd6437d151870a20cdac7c5cb68eebc5f603 (diff)
downloadqmmp-4df195d1e578a597c9297a4631312ec3ea346545.tar.gz
qmmp-4df195d1e578a597c9297a4631312ec3ea346545.tar.bz2
qmmp-4df195d1e578a597c9297a4631312ec3ea346545.zip
updated cmake scripts
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5989 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Effect/soxr')
-rw-r--r--src/plugins/Effect/soxr/CMakeLists.txt42
1 files changed, 20 insertions, 22 deletions
diff --git a/src/plugins/Effect/soxr/CMakeLists.txt b/src/plugins/Effect/soxr/CMakeLists.txt
index 19341e529..57ec0ecac 100644
--- a/src/plugins/Effect/soxr/CMakeLists.txt
+++ b/src/plugins/Effect/soxr/CMakeLists.txt
@@ -1,4 +1,4 @@
-project(libsrconverter)
+project(libsoxr)
cmake_minimum_required(VERSION 2.4.7)
@@ -25,42 +25,40 @@ SET(QT_INCLUDES
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../)
link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmp)
-pkg_check_modules(SAMPLERATE samplerate)
+pkg_check_modules(SOXR soxr)
-include_directories(${SAMPLERATE_INCLUDE_DIRS})
-link_directories(${SAMPLERATE_LIBRARY_DIRS})
-ADD_DEFINITIONS(${SAMPLERATE_CFLAGS})
+include_directories(${SOXR_INCLUDE_DIRS})
+link_directories(${SOXR_LIBRARY_DIRS})
+ADD_DEFINITIONS(${SOXR_CFLAGS})
-SET(libsrconverter_SRCS
- srconverter.cpp
+SET(libsoxr_SRCS
+ soxresampler.cpp
settingsdialog.cpp
- effectsrconverterfactory.cpp
+ effectsoxrfactory.cpp
)
-SET(libsrconverter_HDRS
- srconverter.h
+SET(libsoxr_HDRS
+ soxresampler.h
)
-SET(libsrconverter_RCCS translations/translations.qrc)
+SET(libsoxr_RCCS translations/translations.qrc)
-QT4_ADD_RESOURCES(libsrconverter_RCC_SRCS ${libsrconverter_RCCS})
+QT4_ADD_RESOURCES(libsoxr_RCC_SRCS ${libsoxr_RCCS})
# user interface
-
-SET(libsrconverter_UIS
+SET(libsoxr_UIS
settingsdialog.ui
)
-QT4_WRAP_UI(libsrconverter_UIS_H ${libsrconverter_UIS})
+QT4_WRAP_UI(libsoxr_UIS_H ${libsoxr_UIS})
# Don't forget to include output directory, otherwise
# the UI file won't be wrapped!
include_directories(${CMAKE_CURRENT_BINARY_DIR})
-IF(SAMPLERATE_FOUND)
-ADD_LIBRARY(srconverter MODULE ${libsrconverter_SRCS} ${libsrconverter_UIS_H}
- ${libsrconverter_RCC_SRCS} ${libsrconverter_HDRS})
-add_dependencies(srconverter qmmp)
-target_link_libraries(srconverter ${QT_LIBRARIES} libqmmp ${SAMPLERATE_LDFLAGS})
-install(TARGETS srconverter DESTINATION ${LIB_DIR}/qmmp/Effect)
-ENDIF(SAMPLERATE_FOUND)
+IF(SOXR_FOUND)
+ADD_LIBRARY(soxr MODULE ${libsoxr_SRCS} ${libsoxr_UIS_H} ${libsoxr_RCC_SRCS} ${libsoxr_HDRS})
+add_dependencies(soxr qmmp)
+target_link_libraries(soxr ${QT_LIBRARIES} libqmmp ${SOXR_LDFLAGS})
+install(TARGETS soxr DESTINATION ${LIB_DIR}/qmmp/Effect)
+ENDIF(SOXR_FOUND)