Browse Source

Add CMakeLists.txt for panda/text.

kestred 12 years ago
parent
commit
3cf973f64c

+ 39 - 0
panda/src/text/CMakeLists.txt

@@ -0,0 +1,39 @@
+set(P3TEXT_HEADERS
+  config_text.h
+  default_font.h
+  dynamicTextFont.I dynamicTextFont.h
+  dynamicTextGlyph.I dynamicTextGlyph.h
+  dynamicTextPage.I dynamicTextPage.h
+  fontPool.I fontPool.h
+  geomTextGlyph.I geomTextGlyph.h
+  staticTextFont.I staticTextFont.h
+  textAssembler.I textAssembler.h
+  textFont.I textFont.h
+  textGlyph.I textGlyph.h
+  textGraphic.I textGraphic.h
+  textNode.I textNode.h
+  textProperties.I textProperties.h
+  textPropertiesManager.I textPropertiesManager.h
+)
+set(P3TEXT_SOURCES
+  config_text.cxx
+  default_font.cxx
+  dynamicTextFont.cxx
+  dynamicTextGlyph.cxx
+  dynamicTextPage.cxx
+  fontPool.cxx
+  geomTextGlyph.cxx
+  staticTextFont.cxx
+  textAssembler.cxx
+  textFont.cxx textGlyph.cxx
+  textGraphic.cxx
+  textNode.cxx
+  textProperties.cxx
+  textPropertiesManager.cxx
+  cmss12.bam_src.c cmss12.bam.pz_src.c persans.ttf_src.c
+)
+
+composite_sources(p3text P3TEXT_SOURCES)
+add_library(p3text ${P3TEXT_SOURCES} ${P3TEXT_HEADERS})
+target_link_libraries(p3text p3pnmtext p3parametrics)
+target_interrogate(p3text ALL)

+ 1 - 0
panda/src/text/config_text.h

@@ -53,6 +53,7 @@ extern ConfigVariableDouble text_default_underscore_height;
 extern ConfigVariableEnum<Texture::FilterType> text_minfilter;
 extern ConfigVariableEnum<Texture::FilterType> text_magfilter;
 extern ConfigVariableEnum<Texture::WrapMode> text_wrap_mode;
+extern ConfigVariableEnum<Texture::QualityLevel> text_quality_level;
 extern ConfigVariableEnum<TextFont::RenderMode> text_render_mode;
 
 extern EXPCL_PANDA_TEXT void init_libtext();

+ 1 - 0
panda/src/text/dynamicTextGlyph.cxx

@@ -16,6 +16,7 @@
 
 #ifdef HAVE_FREETYPE
 
+#include "dynamicTextFont.h"
 #include "dynamicTextPage.h"
 #include "geomTextGlyph.h"
 #include "geomVertexData.h"

+ 1 - 0
panda/src/text/dynamicTextPage.cxx

@@ -14,6 +14,7 @@
 
 #include "dynamicTextPage.h"
 #include "dynamicTextFont.h"
+#include "config_text.h"
 
 #ifdef HAVE_FREETYPE