OpenSceneGraph/src/osgText/CMakeLists.txt

40 lines
826 B
CMake
Raw Normal View History

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
2007-03-05 20:11:15 +08:00
${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
2007-03-05 20:11:15 +08:00
FadeText.cpp
Text.cpp
Version.cpp
)
TARGET_LINK_LIBRARIES(${LIB_NAME}
osgDB
osg
${OPENTHREADS_LIBRARY}
${OPENGL_LIBRARIES}
)
INCLUDE(ModuleInstall OPTIONAL)