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

Revision 9949, 1.0 kB (checked in by robert, 5 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 
1IF(DYNAMIC_OPENSCENEGRAPH)
2    ADD_DEFINITIONS(-DOSGTERRAIN_LIBRARY)
3ELSE()
4    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
5ENDIF()
6
7SET(LIB_NAME osgTerrain)
8SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
9SET(LIB_PUBLIC_HEADERS
10    ${HEADER_PATH}/Export
11    ${HEADER_PATH}/Locator
12    ${HEADER_PATH}/Layer
13    ${HEADER_PATH}/TerrainTile
14    ${HEADER_PATH}/TerrainTechnique
15    ${HEADER_PATH}/Terrain
16    ${HEADER_PATH}/GeometryTechnique
17    ${HEADER_PATH}/ValidDataOperator
18    ${HEADER_PATH}/Version
19)
20
21# FIXME: For OS X, need flag for Framework or dylib
22ADD_LIBRARY(${LIB_NAME}
23    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
24    ${LIB_PUBLIC_HEADERS}
25    Layer.cpp
26    Locator.cpp
27    TerrainTile.cpp
28    TerrainTechnique.cpp
29    Terrain.cpp
30    GeometryTechnique.cpp
31    Version.cpp
32    ${OPENSCENEGRAPH_VERSIONINFO_RC}
33)
34
35LINK_INTERNAL(${LIB_NAME}     
36    osgUtil
37    osgDB
38    osg
39    OpenThreads
40)
41LINK_CORELIB_DEFAULT(${LIB_NAME})
42
43INCLUDE(ModuleInstall OPTIONAL)
44
45
Note: See TracBrowser for help on using the browser.