root/OpenSceneGraph/trunk/src/osgFX/CMakeLists.txt @ 9671

Revision 9671, 1.2 kB (checked in by robert, 6 years ago)

From Sherman Wilcox, added VS versioning information into libs

  • Property svn:eol-style set to native
Line 
1
2IF   (DYNAMIC_OPENSCENEGRAPH)
3    ADD_DEFINITIONS(-DOSGFX_LIBRARY)
4ELSE (DYNAMIC_OPENSCENEGRAPH)
5    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
6ENDIF(DYNAMIC_OPENSCENEGRAPH)
7
8SET(LIB_NAME osgFX)
9SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
10SET(LIB_PUBLIC_HEADERS
11    ${HEADER_PATH}/AnisotropicLighting
12    ${HEADER_PATH}/BumpMapping
13    ${HEADER_PATH}/Cartoon
14    ${HEADER_PATH}/Effect
15    ${HEADER_PATH}/Export
16    ${HEADER_PATH}/MultiTextureControl
17    ${HEADER_PATH}/Registry
18    ${HEADER_PATH}/Scribe
19    ${HEADER_PATH}/SpecularHighlights
20    ${HEADER_PATH}/Technique
21    ${HEADER_PATH}/Validator
22    ${HEADER_PATH}/Version
23)
24
25# FIXME: For OS X, need flag for Framework or dylib
26ADD_LIBRARY(${LIB_NAME}
27    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
28    ${LIB_PUBLIC_HEADERS}
29    AnisotropicLighting.cpp
30    BumpMapping.cpp
31    Cartoon.cpp
32    Effect.cpp
33    MultiTextureControl.cpp
34    Registry.cpp
35    Scribe.cpp
36    SpecularHighlights.cpp
37    Technique.cpp
38    Validator.cpp
39    Version.cpp
40    ${OPENSCENEGRAPH_VERSIONINFO_RC}
41)
42
43LINK_INTERNAL(${LIB_NAME}     
44    osgUtil
45    osgDB
46    osg
47    OpenThreads
48)
49LINK_CORELIB_DEFAULT(${LIB_NAME})
50
51INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.