root/OpenSceneGraph/trunk/src/osgText/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 
1
2IF(DYNAMIC_OPENSCENEGRAPH)
3    ADD_DEFINITIONS(-DOSGTEXT_LIBRARY)
4ELSE()
5    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
6ENDIF()
7
8SET(LIB_NAME osgText)
9SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
10SET(LIB_PUBLIC_HEADERS
11    ${HEADER_PATH}/Export
12    ${HEADER_PATH}/Font
13    ${HEADER_PATH}/Font3D
14    ${HEADER_PATH}/KerningType
15    ${HEADER_PATH}/String
16    ${HEADER_PATH}/TextBase
17    ${HEADER_PATH}/Text
18    ${HEADER_PATH}/Text3D
19    ${HEADER_PATH}/FadeText
20    ${HEADER_PATH}/Version
21)
22
23# FIXME: For OS X, need flag for Framework or dylib
24ADD_LIBRARY(${LIB_NAME}
25    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
26    ${LIB_PUBLIC_HEADERS}
27    DefaultFont.cpp
28    DefaultFont.h
29    Font.cpp
30    Font3D.cpp
31    String.cpp
32    FadeText.cpp
33    TextBase.cpp
34    Text.cpp
35    Text3D.cpp
36    Version.cpp
37    ${OPENSCENEGRAPH_VERSIONINFO_RC}
38)
39
40LINK_INTERNAL(${LIB_NAME}     
41    osgDB
42    osg
43    OpenThreads
44)
45LINK_CORELIB_DEFAULT(${LIB_NAME})
46
47INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.