Browse Source

Add CMakeLists.txt for panda/pgraphnodes

kestred 12 years ago
parent
commit
cb09aa42f3

+ 44 - 0
panda/src/pgraphnodes/CMakeLists.txt

@@ -0,0 +1,44 @@
+set(P3PGRAPHNODES_HEADERS
+    ambientLight.h ambientLight.I
+    callbackNode.h callbackNode.I
+    config_pgraphnodes.h
+    directionalLight.h directionalLight.I
+    fadeLodNode.I fadeLodNode.h fadeLodNodeData.h
+    lightLensNode.h lightLensNode.I
+    lightNode.h lightNode.I
+    lodNode.I lodNode.h lodNodeType.h
+    nodeCullCallbackData.h nodeCullCallbackData.I
+    pointLight.h pointLight.I
+    sceneGraphAnalyzer.h sceneGraphAnalyzer.I
+    selectiveChildNode.h selectiveChildNode.I
+    sequenceNode.h sequenceNode.I
+    shaderGenerator.h shaderGenerator.I
+    spotlight.h spotlight.I
+    switchNode.h switchNode.I
+    uvScrollNode.I uvScrollNode.h
+)
+
+set(P3PGRAPHNODES_SOURCES
+    ambientLight.cxx
+    callbackNode.cxx
+    config_pgraphnodes.cxx
+    directionalLight.cxx
+    fadeLodNode.cxx fadeLodNodeData.cxx
+    lightLensNode.cxx
+    lightNode.cxx
+    lodNode.cxx lodNodeType.cxx
+    nodeCullCallbackData.cxx
+    pointLight.cxx
+    sceneGraphAnalyzer.cxx
+    selectiveChildNode.cxx
+    sequenceNode.cxx
+    shaderGenerator.cxx
+    spotlight.cxx
+    switchNode.cxx
+    uvScrollNode.cxx
+)
+
+composite_sources(p3pgraphnodes P3PGRAPHNODES_SOURCES)
+add_library(p3pgraphnodes ${P3PGRAPHNODES_HEADERS} ${P3PGRAPHNODES_SOURCES})
+target_link_libraries(p3pgraphnodes p3pgraph)
+target_interrogate(p3pgraphnodes ALL)

+ 1 - 0
panda/src/pgraphnodes/lodNodeType.cxx

@@ -14,6 +14,7 @@
 
 #include "lodNodeType.h"
 #include "string_utils.h"
+#include "config_pgraph.h"
 
 ostream &
 operator << (ostream &out, LODNodeType lnt) {

+ 2 - 0
panda/src/pgraphnodes/shaderGenerator.cxx

@@ -31,6 +31,7 @@
 #include "texMatrixAttrib.h"
 #include "texGenAttrib.h"
 #include "colorScaleAttrib.h"
+#include "clipPlaneAttrib.h"
 #include "fogAttrib.h"
 #include "texture.h"
 #include "ambientLight.h"
@@ -39,6 +40,7 @@
 #include "spotlight.h"
 #include "lightLensNode.h"
 #include "lvector4.h"
+#include "config_pgraphnodes.h"
 
 TypeHandle ShaderGenerator::_type_handle;
 

+ 1 - 0
panda/src/pgraphnodes/uvScrollNode.cxx

@@ -15,6 +15,7 @@
 #include "uvScrollNode.h"
 
 #include "bamReader.h"
+#include "cullTraverserData.h"
 #include "datagram.h"
 #include "datagramIterator.h"
 #include "luse.h"