2007-03-08 23:31:36 +08:00
|
|
|
|
|
|
|
IF (DYNAMIC_OPENSCENEGRAPH)
|
2007-09-06 01:03:43 +08:00
|
|
|
ADD_DEFINITIONS(-DOSGTEXT_LIBRARY)
|
2007-03-08 23:31:36 +08:00
|
|
|
ELSE (DYNAMIC_OPENSCENEGRAPH)
|
2007-09-06 01:03:43 +08:00
|
|
|
ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
|
2007-03-08 23:31:36 +08:00
|
|
|
ENDIF(DYNAMIC_OPENSCENEGRAPH)
|
|
|
|
|
|
|
|
SET(LIB_NAME osgText)
|
|
|
|
SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
|
|
|
|
SET(LIB_PUBLIC_HEADERS
|
2007-09-06 01:03:43 +08:00
|
|
|
${HEADER_PATH}/Export
|
|
|
|
${HEADER_PATH}/Font
|
2007-12-10 23:15:56 +08:00
|
|
|
${HEADER_PATH}/Font3D
|
|
|
|
${HEADER_PATH}/KerningType
|
2007-09-06 01:03:43 +08:00
|
|
|
${HEADER_PATH}/String
|
2007-12-10 23:15:56 +08:00
|
|
|
${HEADER_PATH}/TextBase
|
2007-09-06 01:03:43 +08:00
|
|
|
${HEADER_PATH}/Text
|
2007-12-10 23:15:56 +08:00
|
|
|
${HEADER_PATH}/Text3D
|
2007-09-06 01:03:43 +08:00
|
|
|
${HEADER_PATH}/FadeText
|
|
|
|
${HEADER_PATH}/Version
|
2007-03-08 23:31:36 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# FIXME: For OS X, need flag for Framework or dylib
|
|
|
|
ADD_LIBRARY(${LIB_NAME}
|
2007-09-06 01:03:43 +08:00
|
|
|
${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
|
|
|
|
${LIB_PUBLIC_HEADERS}
|
|
|
|
DefaultFont.cpp
|
|
|
|
DefaultFont.h
|
|
|
|
Font.cpp
|
2007-12-10 23:15:56 +08:00
|
|
|
Font3D.cpp
|
2007-09-06 01:03:43 +08:00
|
|
|
String.cpp
|
|
|
|
FadeText.cpp
|
2007-12-10 23:15:56 +08:00
|
|
|
TextBase.cpp
|
2007-09-06 01:03:43 +08:00
|
|
|
Text.cpp
|
2007-12-10 23:15:56 +08:00
|
|
|
Text3D.cpp
|
2007-09-06 01:03:43 +08:00
|
|
|
Version.cpp
|
2007-03-08 23:31:36 +08:00
|
|
|
)
|
|
|
|
|
2007-12-10 23:15:56 +08:00
|
|
|
|
|
|
|
SET(TARGET_LIBRARIES_VARS FREETYPE_LIBRARY )
|
2007-09-06 01:03:43 +08:00
|
|
|
LINK_INTERNAL(${LIB_NAME}
|
|
|
|
osgDB
|
|
|
|
osg
|
|
|
|
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)
|