From Luigi Calori, "here is a patch to use Mike 3rdParty dependencies
It should not be introusive to any other palatform apart MSVC, but in order to link to debug-specific libs I had to change plugins CMakeLists to differentiate debug/release linkage, I have used the same macro used in core libs Now the macro used for plugin and examples linking test for existance of TARGET_LIBRARIES_VARS that holds the names of the variables that have to be used for linking"
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
SET(TARGET_SRC osgGLUTkeyboardmouse.cpp )
|
||||
|
||||
SET(TARGET_EXTERNAL_LIBRARIES ${GLUT_glut_LIBRARY} )
|
||||
INCLUDE_DIRECTORIES( ${GLUT_INCLUDE_DIR} )
|
||||
SET(TARGET_LIBRARIES_VARS GLUT_glut_LIBRARY )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_EXAMPLE(osgGLUTkeyboardmouse)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
SET(TARGET_SRC osgGLUTsimple.cpp )
|
||||
|
||||
SET(TARGET_EXTERNAL_LIBRARIES ${GLUT_glut_LIBRARY} )
|
||||
INCLUDE_DIRECTORIES( ${GLUT_INCLUDE_DIR} )
|
||||
SET(TARGET_LIBRARIES_VARS GLUT_glut_LIBRARY )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_EXAMPLE(osgGLUTsimple)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
SET(TARGET_SRC osgsimpleviewerGLUT.cpp )
|
||||
|
||||
SET(TARGET_EXTERNAL_LIBRARIES ${GLUT_glut_LIBRARY} )
|
||||
INCLUDE_DIRECTORIES( ${GLUT_INCLUDE_DIR} )
|
||||
SET(TARGET_LIBRARIES_VARS GLUT_glut_LIBRARY )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_EXAMPLE(osgsimpleviewerGLUT)
|
||||
|
||||
Reference in New Issue
Block a user