root/OpenSceneGraph/trunk/src/osgPresentation/CMakeLists.txt @ 10405

Revision 10405, 0.9 kB (checked in by robert, 5 years ago)

Added osgFX depedency

Line 
1
2IF(DYNAMIC_OPENSCENEGRAPH)
3    ADD_DEFINITIONS(-DOSGSIM_LIBRARY)
4ELSE()
5    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
6ENDIF()
7
8SET(LIB_NAME osgPresentation)
9SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
10SET(LIB_PUBLIC_HEADERS
11    ${HEADER_PATH}/AnimationMaterial
12    ${HEADER_PATH}/CompileSlideCallback
13    ${HEADER_PATH}/PickEventHandler
14    ${HEADER_PATH}/SlideEventHandler
15    ${HEADER_PATH}/SlideShowConstructor
16)
17
18# FIXME: For OS X, need flag for Framework or dylib
19ADD_LIBRARY(${LIB_NAME}
20    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
21    ${LIB_PUBLIC_HEADERS}
22    AnimationMaterial.cpp
23    CompileSlideCallback.cpp
24    PickEventHandler.cpp
25    SlideEventHandler.cpp
26    SlideShowConstructor.cpp
27    ${OPENSCENEGRAPH_VERSIONINFO_RC}
28)
29
30LINK_INTERNAL(${LIB_NAME}
31    osgViewer
32    osgVolume
33    osgFX
34    osgText
35    osgUtil
36    osgDB
37    osg
38    OpenThreads
39)
40LINK_CORELIB_DEFAULT(${LIB_NAME})
41
42INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.