File: CMakeLists.txt

package info (click to toggle)
ftgl 2.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,540 kB
  • sloc: cpp: 17,918; sh: 1,073; ansic: 644; makefile: 376
file content (121 lines) | stat: -rw-r--r-- 2,895 bytes parent folder | download | duplicates (2)
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

FIND_PACKAGE(CxxTest  REQUIRED)
FIND_PACKAGE(GLUT     REQUIRED)

SET(CXXTEST_USE_PYTHON TRUE)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/cmake)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(${CXXTEST_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${CXXTEST_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${GLUT_INCLUDE_DIR})

ADD_DEFINITIONS(-D HAVE_GL_GLUT_H)

FIND_PATH(GOOD_FONT_FILE_DIR  Ubuntu-R.ttf PATHS /usr/share/fonts/truetype/ubuntu-font-family)
FIND_PATH(ARIAL_FONT_FILE_DIR arial.ttf    PATHS /usr/share/fonts/truetype/msttcorefonts)
FIND_PATH(GOOD_FONT_FILE_DIR  times.ttf    PATHS /usr/share/fonts/truetype/msttcorefonts)

CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Fontdefs.h.in ${CMAKE_CURRENT_BINARY_DIR}/Fontdefs.h)

ENABLE_TESTING()

ADD_EXECUTABLE(FTGL_testsC CTest.c)
TARGET_LINK_LIBRARIES(FTGL_testsC
   ftgl
#	cppunit
	${FREETYPE_LIBRARIES}
	${OPENGL_LIBRARIES}
	${GLUT_LIBRARIES}
)

SET_TARGET_PROPERTIES(FTGL_testsC
  PROPERTIES
    VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
	SOVERSION ${FTGL_SOVERSION}
   DEBUG_POSTFIX "d"
)

#ADD_CUSTOM_COMMAND(TARGET FTGL_testsC POST_BUILD COMMAND FTGL_testsC)


SET(CXXTest_SOURCES
#    $(DEACTIVATED)
    CXXTest.cpp
#    Fontdefs.h
#    FTBBox-Test.cpp
#    FTBitmapFont-Test.cpp
    FTBitmapGlyph-Test.cpp
    FTCharmap-Test.cpp
    FTCharToGlyphIndexMap-Test.cpp
#    FTContour-Test.cpp
    FTExtrudeFont-Test.cpp
    FTExtrudeGlyph-Test.cpp
##    FTFace-Test.cpp
#    FTFont-Test.cpp
#    FTGlyph-Test.cpp
    FTGlyphContainer-Test.cpp
    FTlayout-Test.cpp
    FTLibrary-Test.cpp
    FTList-Test.cpp
    FTMesh-Test.cpp
    FTOutlineFont-Test.cpp
    FTOutlineGlyph-Test.cpp
    FTPixmapFont-Test.cpp
    FTPixmapGlyph-Test.cpp
    FTPoint-Test.cpp
    FTPolygonFont-Test.cpp
    FTPolygonGlyph-Test.cpp
#    FTSize-Test.cpp
    FTTesselation-Test.cpp
#    FTTextureFont-Test.cpp
    FTTextureGlyph-Test.cpp
#    FTVectoriser-Test.cpp
    FTVector-Test.cpp
    HPGCalc_afm.cpp
    HPGCalc_pfb.cpp

	FTTriangleExtract-Test.cpp
)

#CXXTEST_ADD_TEST(FTGL_tests ${CXXTest_SOURCES})

#CXXTEST_ADD_TEST(FTGL_tests FTBBox-Test.cpp)


ADD_EXECUTABLE(FTGL_tests ${CXXTest_SOURCES})
TARGET_LINK_LIBRARIES(FTGL_tests
   ftgl
	cppunit
	${FREETYPE_LIBRARIES}
	${OPENGL_LIBRARIES}
	${GLUT_LIBRARIES}
)

SET_TARGET_PROPERTIES(FTGL_tests
  PROPERTIES
    VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
	SOVERSION ${FTGL_SOVERSION}
   DEBUG_POSTFIX "d"
)

ADD_CUSTOM_COMMAND(TARGET FTGL_tests POST_BUILD COMMAND FTGL_tests)

ADD_EXECUTABLE(demo demo.cpp)
TARGET_LINK_LIBRARIES(demo
   ftgl
	${FREETYPE_LIBRARIES}
	${OPENGL_LIBRARIES}
	${GLUT_LIBRARIES}
)

SET_TARGET_PROPERTIES(demo
  PROPERTIES
    VERSION ${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}
	SOVERSION ${FTGL_SOVERSION}
   DEBUG_POSTFIX "d"
)