From 60f87adeda0d76850b61324f484b7e40832e19e7 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 13 Feb 2019 19:00:40 +0000 Subject: added projectm 3.1 support (#998) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8708 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Visual/projectm/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plugins/Visual/projectm/CMakeLists.txt') diff --git a/src/plugins/Visual/projectm/CMakeLists.txt b/src/plugins/Visual/projectm/CMakeLists.txt index 6e724723b..15697f879 100644 --- a/src/plugins/Visual/projectm/CMakeLists.txt +++ b/src/plugins/Visual/projectm/CMakeLists.txt @@ -15,6 +15,12 @@ ELSE(${Qt5Gui_OPENGL_IMPLEMENTATION} STREQUAL GL) MESSAGE(WARNING "Unsuppoted OpenGL implementation, projectM disabled") ENDIF(${Qt5Gui_OPENGL_IMPLEMENTATION} STREQUAL GL) +pkg_search_module(PROJECTM_31 libprojectM>=3.1.0) + +IF(PROJECTM_31_FOUND) +ADD_DEFINITIONS(-DPROJECTM_31) +ENDIF(PROJECTM_31_FOUND) + find_file(PROJECTM_CONFIG config.inp PATHS "/usr/share/projectM/" "/usr/local/share/projectM/") -- cgit v1.2.3-13-gbd6f