root/OpenSceneGraph/trunk/examples/osgqfont/CMakeLists.txt @ 13482

Revision 13482, 0.6 kB (checked in by robert, 32 hours ago)

From Alberto Luaces,"the current code uses the preprocessor for generating the plugin path in
a way that when CMAKE_INSTALL_PREFIX contains something along the lines
of

/usr/x86_64-linux-gnu/

it gets substituted as

/usr/x86_64-1-gnu/

that is, the string is preprocessed again, thereby making changes to
anything that matches any defined symbol, as "linux" in this example
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763816).

Quoting that path directly in CMake scripts solves that problem.
"

  • Property svn:eol-style set to native
Line 
1#this file is automatically generated
2
3ADD_DEFINITIONS(-DUSE_QT4)
4
5SET(TARGET_SRC osgqfont.cpp )
6SET(TARGET_ADDED_LIBRARIES osgQt osgText)
7IF ( NOT Qt5Widgets_FOUND )
8    INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${QT_QTOPENGL_INCLUDE_DIR} )
9    SET(TARGET_EXTERNAL_LIBRARIES ${QT_QTCORE_LIBRARY_RELEASE} ${QT_QTGUI_LIBRARY_RELEASE} ${QT_QTOPENGL_LIBRARY_RELEASE} )
10ENDIF()
11
12#### end var setup  ###
13SET ( EXAMPLE_NAME osgqfont )
14SETUP_EXAMPLE(${EXAMPLE_NAME})
15
16IF ( Qt5Widgets_FOUND )
17    qt5_use_modules( example_${EXAMPLE_NAME} Widgets OpenGL )
18ENDIF( Qt5Widgets_FOUND )
Note: See TracBrowser for help on using the browser.