Browse Source

Add CMakeLists.txt to pnmtext.

kestred 12 years ago
parent
commit
2af9551750
3 changed files with 34 additions and 9 deletions
  1. 6 0
      panda/CMakeLists.txt
  2. 9 9
      panda/src/device/CMakeLists.txt
  3. 19 0
      panda/src/pnmtext/CMakeLists.txt

+ 6 - 0
panda/CMakeLists.txt

@@ -14,6 +14,9 @@ endif()
 if(HAVE_CG)
   include_directories(${CG_INCLUDE_DIRS})
 endif()
+if(HAVE_FREETYPE)
+  include_directories(${FREETYPE_INCLUDE_DIRS})
+endif()
 
 # Include panda source directories
 add_subdirectory(src/pandabase)
@@ -36,7 +39,10 @@ add_subdirectory(src/chan)
 add_subdirectory(src/char)
 add_subdirectory(src/dgraph)
 add_subdirectory(src/device)
+add_subdirectory(src/pnmtext)
 
+#add_subdirectory(src/text)
+#add_subdirectory(src/grutil)
 #add_subdirectory(src/tform)
 #add_subdirectory(src/framework)
 #add_subdirectory(src/testbed)

+ 9 - 9
panda/src/device/CMakeLists.txt

@@ -1,12 +1,12 @@
 set(P3DEVICE_HEADERS
   analogNode.I analogNode.h
-  buttonNode.I buttonNode.h 
-  clientAnalogDevice.I clientAnalogDevice.h clientBase.I 
-  clientBase.h clientButtonDevice.I clientButtonDevice.h 
-  clientDevice.I clientDevice.h clientDialDevice.I 
-  clientDialDevice.h clientTrackerDevice.I 
+  buttonNode.I buttonNode.h
+  clientAnalogDevice.I clientAnalogDevice.h clientBase.I
+  clientBase.h clientButtonDevice.I clientButtonDevice.h
+  clientDevice.I clientDevice.h clientDialDevice.I
+  clientDialDevice.h clientTrackerDevice.I
   clientTrackerDevice.h config_device.h
-  dialNode.I dialNode.h 
+  dialNode.I dialNode.h
   mouseAndKeyboard.h
   trackerData.I trackerData.h
   trackerNode.I trackerNode.h
@@ -15,9 +15,9 @@ set(P3DEVICE_HEADERS
 set(P3DEVICE_SOURCES
   analogNode.cxx
   buttonNode.cxx
-  clientAnalogDevice.cxx 
-  clientBase.cxx clientButtonDevice.cxx clientDevice.cxx 
-  clientDialDevice.cxx clientTrackerDevice.cxx 
+  clientAnalogDevice.cxx
+  clientBase.cxx clientButtonDevice.cxx clientDevice.cxx
+  clientDialDevice.cxx clientTrackerDevice.cxx
   config_device.cxx
   dialNode.cxx
   mouseAndKeyboard.cxx

+ 19 - 0
panda/src/pnmtext/CMakeLists.txt

@@ -0,0 +1,19 @@
+set(P3PNMTEXT_HEADERS
+  config_pnmtext.h
+  freetypeFace.h freetypeFace.I
+  freetypeFont.h freetypeFont.I
+  pnmTextGlyph.h pnmTextGlyph.I
+  pnmTextMaker.h pnmTextMaker.I
+)
+set(P3PNMTEXT_SOURCES
+  config_pnmtext.cxx
+  freetypeFace.cxx
+  freetypeFont.cxx
+  pnmTextGlyph.cxx
+  pnmTextMaker.cxx
+)
+
+composite_sources(p3pnmtext P3PNMTEXT_SOURCES)
+add_library(p3pnmtext ${P3PNMTEXT_SOURCES} ${P3PNMTEXT_HEADERS})
+target_link_libraries(p3pnmtext p3pnmimage)
+target_interrogate(p3pnmtext ALL)