mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-14 11:25:27 +00:00
added qt4 detection error checking and pretty print, beta testing of potentially too annoying FTGL warning messages
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@821 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -28,7 +28,7 @@ TARGET_LINK_LIBRARIES(projectM GLEW m)
|
||||
|
||||
IF(USE_FTGL)
|
||||
if (FTGL_FOUND)
|
||||
MESSAGE(STATUS "FTGL found.")
|
||||
MESSAGE("FTGL font support was detected are enabled.")
|
||||
else (FTGL_FOUND)
|
||||
MESSAGE(
|
||||
"Warning! FTGL has been enabled but not detected. Your compilation will probably break. Turn off FTGL support by setting USE_FTGL to false, or visit http://ftgl.wiki.sourceforge.net/ for help on installing FTGL.")
|
||||
@ -37,6 +37,12 @@ IF(USE_FTGL)
|
||||
INCLUDE_DIRECTORIES(${FTGL_INCLUDE_DIRS})
|
||||
LINK_DIRECTORIES(${FTGL_LIBRARY_DIRS} "./")
|
||||
TARGET_LINK_LIBRARIES(projectM GLEW m ftgl freetype)
|
||||
ELSE (USE_FTGL)
|
||||
IF (FTGL_FOUND)
|
||||
MESSAGE("Warning: FTGL font support was detected but NOT enabled. You can enable it by setting USE_FTGL=true")
|
||||
ELSE (FTGL_FOUND)
|
||||
MESSAGE("Warning: FTGL font support was not detected. Visit http://ftgl.wiki.sourceforge.net/ for help on installing FTGL.")
|
||||
ENDIF(FTGL_FOUND)
|
||||
ENDIF(USE_FTGL)
|
||||
|
||||
CONFIGURE_FILE("libprojectM.pc.in" "libprojectM.pc" @ONLY)
|
||||
|
||||
@ -7,6 +7,11 @@ cmake_minimum_required(VERSION 2.4.0)
|
||||
|
||||
find_package(Qt4 REQUIRED) # find and setup Qt4 for this project
|
||||
|
||||
if (QT4_FOUND)
|
||||
MESSAGE(STATUS "Qt4 Detected fine.")
|
||||
else (QT4_FOUND)
|
||||
MESSAGE(FATAL_ERROR "Qt4 not detected. Please install Qt4 before continuing (visit www.trolltech.org for more info)")
|
||||
endif(QT4_FOUND)
|
||||
set(QT_USE_OPENGL TRUE)
|
||||
|
||||
# -> this will cause cmake to include and link against the OpenGL module
|
||||
|
||||
Reference in New Issue
Block a user