42b709a9f4
SETUP_EXE, in order to have a unique entry point to build the libraries. With this changes the android integration will be less painful (currently is a big IF(ANDROID) for each CMakeLists.txt) and more maintainable in the future. I hope next submissions will be for supporting android from my colleague Jorge. "
52 lines
964 B
CMake
52 lines
964 B
CMake
|
|
IF(DYNAMIC_OPENSCENEGRAPH)
|
|
ADD_DEFINITIONS(-DOSGTEXT_LIBRARY)
|
|
ELSE()
|
|
ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
|
|
ENDIF()
|
|
|
|
SET(LIB_NAME osgText)
|
|
SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
|
|
SET(TARGET_H
|
|
${HEADER_PATH}/Export
|
|
${HEADER_PATH}/Font
|
|
${HEADER_PATH}/Font3D
|
|
${HEADER_PATH}/FadeText
|
|
${HEADER_PATH}/Glyph
|
|
${HEADER_PATH}/KerningType
|
|
${HEADER_PATH}/String
|
|
${HEADER_PATH}/Style
|
|
${HEADER_PATH}/TextBase
|
|
${HEADER_PATH}/Text
|
|
${HEADER_PATH}/Text3D
|
|
${HEADER_PATH}/Version
|
|
)
|
|
|
|
# FIXME: For OS X, need flag for Framework or dylib
|
|
SET(TARGET_SRC
|
|
DefaultFont.cpp
|
|
DefaultFont.h
|
|
GlyphGeometry.h
|
|
GlyphGeometry.cpp
|
|
Font.cpp
|
|
FadeText.cpp
|
|
Glyph.cpp
|
|
String.cpp
|
|
Style.cpp
|
|
TextBase.cpp
|
|
Text.cpp
|
|
Text3D.cpp
|
|
Version.cpp
|
|
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
|
)
|
|
|
|
SET(TARGET_LIBRARIES
|
|
osgDB
|
|
osg
|
|
osgUtil
|
|
OpenThreads
|
|
)
|
|
|
|
SETUP_LIBRARY(${LIB_NAME})
|
|
|