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:
Robert Osfield
2007-03-27 21:44:02 +00:00
parent 90f355bd4e
commit 5c780aada0
10 changed files with 21 additions and 18 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)