Hash :
45f4ec1f
Author :
Date :
2016-02-25T15:31:02
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/cmake)
ADD_DEFINITIONS(-DPACKAGE_VERSION="${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}")
IF(WIN32)
ADD_DEFINITIONS(-D_USE_MATH_DEFINES)
ENDIF()
SET(libftgl_la_SOURCES
FTBuffer.cpp
FTCharmap.cpp
FTCharmap.h
FTCharToGlyphIndexMap.h
FTCleanup.cpp
FTCleanup.h
FTContour.cpp
FTContour.h
FTFace.cpp
FTFace.h
FTGL.cpp
FTGlyphContainer.cpp
FTGlyphContainer.h
FTInternals.h
FTLibrary.cpp
FTLibrary.h
FTList.h
FTPoint.cpp
FTSize.cpp
FTSize.h
FTVector.h
FTVectoriser.cpp
FTVectoriser.h
FTUnicode.h
)
SET(ftgl_headers
FTGL/ftgl.h
FTGL/FTBBox.h
FTGL/FTBuffer.h
FTGL/FTPoint.h
FTGL/FTGlyph.h
FTGL/FTBitmapGlyph.h
FTGL/FTBufferGlyph.h
FTGL/FTExtrdGlyph.h
FTGL/FTOutlineGlyph.h
FTGL/FTPixmapGlyph.h
FTGL/FTPolyGlyph.h
FTGL/FTTextureGlyph.h
FTGL/FTFont.h
FTGL/FTGLBitmapFont.h
FTGL/FTBufferFont.h
FTGL/FTGLExtrdFont.h
FTGL/FTGLOutlineFont.h
FTGL/FTGLPixmapFont.h
FTGL/FTGLPolygonFont.h
FTGL/FTGLTextureFont.h
FTGL/FTGLTriangleExtractorFont.h
FTGL/FTLayout.h
FTGL/FTSimpleLayout.h
)
SET(ftglyph_sources
FTGlyph/FTGlyph.cpp
FTGlyph/FTGlyphImpl.h
FTGlyph/FTGlyphGlue.cpp
FTGlyph/FTBitmapGlyph.cpp
FTGlyph/FTBitmapGlyphImpl.h
FTGlyph/FTBufferGlyph.cpp
FTGlyph/FTBufferGlyphImpl.h
FTGlyph/FTExtrudeGlyph.cpp
FTGlyph/FTExtrudeGlyphImpl.h
FTGlyph/FTOutlineGlyph.cpp
FTGlyph/FTOutlineGlyphImpl.h
FTGlyph/FTPixmapGlyph.cpp
FTGlyph/FTPixmapGlyphImpl.h
FTGlyph/FTPolygonGlyph.cpp
FTGlyph/FTPolygonGlyphImpl.h
FTGlyph/FTTextureGlyph.cpp
FTGlyph/FTTextureGlyphImpl.h
FTGlyph/FTTriangleExtractorGlyph.cpp
FTGlyph/FTTriangleExtractorGlyphImpl.h
)
SET(ftfont_sources
FTFont/FTFont.cpp
FTFont/FTFontImpl.h
FTFont/FTFontGlue.cpp
FTFont/FTBitmapFont.cpp
FTFont/FTBitmapFontImpl.h
FTFont/FTBufferFont.cpp
FTFont/FTBufferFontImpl.h
FTFont/FTExtrudeFont.cpp
FTFont/FTExtrudeFontImpl.h
FTFont/FTOutlineFont.cpp
FTFont/FTOutlineFontImpl.h
FTFont/FTPixmapFont.cpp
FTFont/FTPixmapFontImpl.h
FTFont/FTPolygonFont.cpp
FTFont/FTPolygonFontImpl.h
FTFont/FTTextureFont.cpp
FTFont/FTTextureFontImpl.h
FTFont/FTTriangleExtractorFont.cpp
FTFont/FTTriangleExtractorFontImpl.h
)
SET(ftlayout_sources
FTLayout/FTLayout.cpp
FTLayout/FTLayoutImpl.h
FTLayout/FTLayoutGlue.cpp
FTLayout/FTSimpleLayout.cpp
FTLayout/FTSimpleLayoutImpl.h
)
ADD_LIBRARY(ftgl ${libftgl_la_SOURCES} ${ftgl_headers} ${ftglyph_sources} ${ftfont_sources} ${ftlayout_sources})
TARGET_LINK_LIBRARIES(ftgl
${FREETYPE_LIBRARIES}
${OPENGL_LIBRARIES}
)
IF(NOT BUILD_SHARED_LIBS)
TARGET_LINK_LIBRARIES(ftgl ${OPENGL_LIBRARIES})
ENDIF()
SET_TARGET_PROPERTIES(
ftgl
PROPERTIES
VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
SOVERSION ${FTGL_SOVERSION}
DEBUG_POSTFIX "d"
)
INSTALL(TARGETS ftgl
EXPORT FTGL-targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/FTGL/*.h")
INSTALL(FILES ${files} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/FTGL)