OpenSceneGraph/src/osgPresentation/CMakeLists.txt
Robert Osfield 42b709a9f4 From Rafa Gaitan, "I have added the macro SETUP_LIBRARY, similar to SETUP_PLUGIN or
SETUP_EXE, in order to have a unique entry point to build the
libraries. With this changes the android integration will be less
painful (currently is a big IF(ANDROID) for each CMakeLists.txt) and
more maintainable in the future. I hope next submissions will be for
supporting android from my colleague Jorge.
"
2011-03-08 13:51:13 +00:00

44 lines
880 B
CMake

IF(DYNAMIC_OPENSCENEGRAPH)
ADD_DEFINITIONS(-DOSGPRESENTATION_LIBRARY)
ELSE()
ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
ENDIF()
SET(LIB_NAME osgPresentation)
SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
SET(TARGET_H
${HEADER_PATH}/Export
${HEADER_PATH}/AnimationMaterial
${HEADER_PATH}/CompileSlideCallback
${HEADER_PATH}/PickEventHandler
${HEADER_PATH}/SlideEventHandler
${HEADER_PATH}/SlideShowConstructor
)
# FIXME: For OS X, need flag for Framework or dylib
SET(TARGET_SRC
AnimationMaterial.cpp
CompileSlideCallback.cpp
PickEventHandler.cpp
SlideEventHandler.cpp
SlideShowConstructor.cpp
${OPENSCENEGRAPH_VERSIONINFO_RC}
)
SET(TARGET_LIBRARIES
osgViewer
osgManipulator
osgVolume
osgFX
osgText
osgGA
osgUtil
osgDB
osg
OpenThreads
)
SETUP_LIBRARY(${LIB_NAME})