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

Revision 9949, 1.1 kB (checked in by robert, 6 years ago)

From Philip Lowman, "Here's the promised cleanup of the OSG's CMakeLists.txt files for the src/ folder. I'll submit the others separately.

Also, there was also a small bug in osgDB's CMakeLists.txt that was causing an error when I tested with CMake 2.4.4.

IF(${OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX} STREQUAL "quicktime")
was changed to
IF(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX STREQUAL "quicktime")
"

  • Property svn:eol-style set to native
Line 
1
2IF(DYNAMIC_OPENSCENEGRAPH)
3    ADD_DEFINITIONS(-DOSGFX_LIBRARY)
4ELSE()
5    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
6ENDIF()
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.