@@ -74,6 +74,7 @@ cmake_dependent_option(ENABLE_GLES "Enable OpenGL ES support" OFF "NOT ENABLE_EM
7474option (ENABLE_BOOST_FILESYSTEM "Force the use of boost::filesystem, even if the compiler supports C++17." OFF )
7575cmake_dependent_option(ENABLE_INSTALL "Enable installing projectM libraries and headers." OFF "NOT PROJECT_IS_TOP_LEVEL" ON )
7676option (ENABLE_SYSTEM_GLM "Enable use of system-install GLM library" OFF )
77+ option (ENABLE_SYSTEM_PROJECTM_EVAL "Enable use of a system-installed/external projectM-eval library" ON )
7778option (BUILD_DOCS "Build documentation" OFF )
7879
7980# Experimental/unsupported features
@@ -83,6 +84,10 @@ if(ENABLE_SYSTEM_GLM)
8384 find_package (GLM REQUIRED)
8485endif ()
8586
87+ if (ENABLE_SYSTEM_PROJECTM_EVAL)
88+ find_package (projectM-Eval)
89+ endif ()
90+
8691if (NOT BUILD_SHARED_LIBS AND CMAKE_SYSTEM_NAME STREQUAL "Windows" )
8792 # Add "lib" in front of static library files to allow installing both shared and static libs in the same dir.
8893 set (CMAKE_STATIC_LIBRARY_PREFIX lib)
@@ -217,46 +222,47 @@ message(STATUS "")
217222message (STATUS "libprojectM v${PROJECT_VERSION} " )
218223message (STATUS "==============================================" )
219224message (STATUS "" )
220- message (STATUS " prefix: ${CMAKE_INSTALL_PREFIX} " )
221- message (STATUS " libdir: ${PROJECTM_LIB_DIR} " )
222- message (STATUS " includedir: ${PROJECTM_INCLUDE_DIR} " )
223- message (STATUS " bindir: ${PROJECTM_BIN_DIR} " )
225+ message (STATUS " prefix: ${CMAKE_INSTALL_PREFIX} " )
226+ message (STATUS " libdir: ${PROJECTM_LIB_DIR} " )
227+ message (STATUS " includedir: ${PROJECTM_INCLUDE_DIR} " )
228+ message (STATUS " bindir: ${PROJECTM_BIN_DIR} " )
224229message (STATUS "" )
225- message (STATUS " compiler: ${CMAKE_CXX_COMPILER} " )
226- message (STATUS " cflags: ${CMAKE_C_FLAGS} " )
227- message (STATUS " cxxflags: ${CMAKE_CXX_FLAGS} " )
228- message (STATUS " ldflags: ${CMAKE_SHARED_LINKER_FLAGS} " )
230+ message (STATUS " compiler: ${CMAKE_CXX_COMPILER} " )
231+ message (STATUS " cflags: ${CMAKE_C_FLAGS} " )
232+ message (STATUS " cxxflags: ${CMAKE_CXX_FLAGS} " )
233+ message (STATUS " ldflags: ${CMAKE_SHARED_LINKER_FLAGS} " )
229234message (STATUS "" )
230235message (STATUS "Features:" )
231236message (STATUS "==============================================" )
232237message (STATUS "" )
233- message (STATUS " Build shared libraries: ${BUILD_SHARED_LIBS} " )
238+ message (STATUS " Build shared libraries: ${BUILD_SHARED_LIBS} " )
234239if (ENABLE_BOOST_FILESYSTEM)
235- message (STATUS " Filesystem support: Boost" )
236- message (STATUS " Boost version: ${Boost_VERSION} " )
240+ message (STATUS " Filesystem support: Boost" )
241+ message (STATUS " Boost version: ${Boost_VERSION} " )
237242else ()
238- message (STATUS " Filesystem support: C++17 STL" )
243+ message (STATUS " Filesystem support: C++17 STL" )
239244endif ()
240- message (STATUS " SDL2: ${ENABLE_SDL_UI} " )
245+ message (STATUS " SDL2: ${ENABLE_SDL_UI} " )
241246if (ENABLE_SDL_UI)
242- message (STATUS " SDL2 version: ${SDL2_VERSION} " )
247+ message (STATUS " SDL2 version: ${SDL2_VERSION} " )
243248endif ()
244- message (STATUS " OpenGL ES: ${ENABLE_GLES} " )
245- message (STATUS " Emscripten: ${ENABLE_EMSCRIPTEN} " )
249+ message (STATUS " OpenGL ES: ${ENABLE_GLES} " )
250+ message (STATUS " Emscripten: ${ENABLE_EMSCRIPTEN} " )
246251if (CMAKE_SYSTEM_NAME STREQUAL Emscripten)
247252 message (STATUS " - PThreads: ${USE_PTHREADS} " )
248253endif ()
249- message (STATUS " Use system GLM: ${ENABLE_SYSTEM_GLM} " )
250- message (STATUS " Link UI with shared lib: ${ENABLE_SHARED_LINKING} " )
254+ message (STATUS " Use system GLM: ${ENABLE_SYSTEM_GLM} " )
255+ message (STATUS " Use system projectM-eval: ${ENABLE_SYSTEM_PROJECTM_EVAL} " )
256+ message (STATUS " Link UI with shared lib: ${ENABLE_SHARED_LINKING} " )
251257message (STATUS "" )
252258message (STATUS "Targets and applications:" )
253259message (STATUS "==============================================" )
254260message (STATUS "" )
255- message (STATUS " libprojectM: (always built)" )
256- message (STATUS " Playlist library: ${ENABLE_PLAYLIST} " )
257- message (STATUS " SDL2 Test UI: ${ENABLE_SDL_UI} " )
258- message (STATUS " Tests: ${BUILD_TESTING} " )
259- message (STATUS " Documentation: ${BUILD_DOCS} " )
261+ message (STATUS " libprojectM: (always built)" )
262+ message (STATUS " Playlist library: ${ENABLE_PLAYLIST} " )
263+ message (STATUS " SDL2 Test UI: ${ENABLE_SDL_UI} " )
264+ message (STATUS " Tests: ${BUILD_TESTING} " )
265+ message (STATUS " Documentation: ${BUILD_DOCS} " )
260266message (STATUS "" )
261267
262268if (ENABLE_CXX_INTERFACE)
0 commit comments