@@ -74,6 +74,7 @@ cmake_dependent_option(ENABLE_GLES "Enable OpenGL ES support" OFF "NOT ENABLE_EM
74
74
option (ENABLE_BOOST_FILESYSTEM "Force the use of boost::filesystem, even if the compiler supports C++17." OFF )
75
75
cmake_dependent_option(ENABLE_INSTALL "Enable installing projectM libraries and headers." OFF "NOT PROJECT_IS_TOP_LEVEL" ON )
76
76
option (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 )
77
78
option (BUILD_DOCS "Build documentation" OFF )
78
79
79
80
# Experimental/unsupported features
@@ -83,6 +84,10 @@ if(ENABLE_SYSTEM_GLM)
83
84
find_package (GLM REQUIRED)
84
85
endif ()
85
86
87
+ if (ENABLE_SYSTEM_PROJECTM_EVAL)
88
+ find_package (projectM-Eval)
89
+ endif ()
90
+
86
91
if (NOT BUILD_SHARED_LIBS AND CMAKE_SYSTEM_NAME STREQUAL "Windows" )
87
92
# Add "lib" in front of static library files to allow installing both shared and static libs in the same dir.
88
93
set (CMAKE_STATIC_LIBRARY_PREFIX lib)
@@ -217,46 +222,47 @@ message(STATUS "")
217
222
message (STATUS "libprojectM v${PROJECT_VERSION} " )
218
223
message (STATUS "==============================================" )
219
224
message (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} " )
224
229
message (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} " )
229
234
message (STATUS "" )
230
235
message (STATUS "Features:" )
231
236
message (STATUS "==============================================" )
232
237
message (STATUS "" )
233
- message (STATUS " Build shared libraries: ${BUILD_SHARED_LIBS} " )
238
+ message (STATUS " Build shared libraries: ${BUILD_SHARED_LIBS} " )
234
239
if (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} " )
237
242
else ()
238
- message (STATUS " Filesystem support: C++17 STL" )
243
+ message (STATUS " Filesystem support: C++17 STL" )
239
244
endif ()
240
- message (STATUS " SDL2: ${ENABLE_SDL_UI} " )
245
+ message (STATUS " SDL2: ${ENABLE_SDL_UI} " )
241
246
if (ENABLE_SDL_UI)
242
- message (STATUS " SDL2 version: ${SDL2_VERSION} " )
247
+ message (STATUS " SDL2 version: ${SDL2_VERSION} " )
243
248
endif ()
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} " )
246
251
if (CMAKE_SYSTEM_NAME STREQUAL Emscripten)
247
252
message (STATUS " - PThreads: ${USE_PTHREADS} " )
248
253
endif ()
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} " )
251
257
message (STATUS "" )
252
258
message (STATUS "Targets and applications:" )
253
259
message (STATUS "==============================================" )
254
260
message (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} " )
260
266
message (STATUS "" )
261
267
262
268
if (ENABLE_CXX_INTERFACE)
0 commit comments