2007-03-08 23:31:36 +08:00
|
|
|
|
|
|
|
IF (DYNAMIC_OPENSCENEGRAPH)
|
|
|
|
ADD_DEFINITIONS(-DOSGTEXT_LIBRARY)
|
|
|
|
ELSE (DYNAMIC_OPENSCENEGRAPH)
|
|
|
|
ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
|
|
|
|
ENDIF(DYNAMIC_OPENSCENEGRAPH)
|
|
|
|
|
|
|
|
SET(LIB_NAME osgText)
|
|
|
|
SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
|
|
|
|
SET(LIB_PUBLIC_HEADERS
|
|
|
|
${HEADER_PATH}/Export
|
|
|
|
${HEADER_PATH}/Font
|
|
|
|
${HEADER_PATH}/String
|
|
|
|
${HEADER_PATH}/Text
|
|
|
|
${HEADER_PATH}/FadeText
|
|
|
|
${HEADER_PATH}/Version
|
|
|
|
)
|
|
|
|
|
|
|
|
# FIXME: For OS X, need flag for Framework or dylib
|
|
|
|
ADD_LIBRARY(${LIB_NAME}
|
|
|
|
${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
|
|
|
|
${LIB_PUBLIC_HEADERS}
|
|
|
|
DefaultFont.cpp
|
|
|
|
DefaultFont.h
|
|
|
|
Font.cpp
|
|
|
|
String.cpp
|
|
|
|
FadeText.cpp
|
|
|
|
Text.cpp
|
|
|
|
Version.cpp
|
|
|
|
)
|
|
|
|
|
2007-03-26 21:02:38 +08:00
|
|
|
LINK_INTERNAL(${LIB_NAME}
|
2007-03-08 23:31:36 +08:00
|
|
|
osgDB
|
|
|
|
osg
|
2007-05-03 18:06:38 +08:00
|
|
|
OpenThreads
|
2007-03-08 23:31:36 +08:00
|
|
|
)
|
2007-03-26 21:02:38 +08:00
|
|
|
LINK_CORELIB_DEFAULT(${LIB_NAME})
|
2007-03-08 23:31:36 +08:00
|
|
|
|
|
|
|
INCLUDE(ModuleInstall OPTIONAL)
|