From cb09aa42f39b37509d586f142238e3befcd7d10d Mon Sep 17 00:00:00 2001 From: kestred Date: Tue, 21 Jan 2014 21:19:34 -0700 Subject: [PATCH] Add CMakeLists.txt for panda/pgraphnodes --- panda/src/pgraphnodes/CMakeLists.txt | 44 +++++++++++++++++++++++ panda/src/pgraphnodes/lodNodeType.cxx | 1 + panda/src/pgraphnodes/shaderGenerator.cxx | 2 ++ panda/src/pgraphnodes/uvScrollNode.cxx | 1 + 4 files changed, 48 insertions(+) create mode 100644 panda/src/pgraphnodes/CMakeLists.txt diff --git a/panda/src/pgraphnodes/CMakeLists.txt b/panda/src/pgraphnodes/CMakeLists.txt new file mode 100644 index 0000000000..22961aa9f1 --- /dev/null +++ b/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) diff --git a/panda/src/pgraphnodes/lodNodeType.cxx b/panda/src/pgraphnodes/lodNodeType.cxx index 1c91002c1f..8ceb4eb860 100644 --- a/panda/src/pgraphnodes/lodNodeType.cxx +++ b/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) { diff --git a/panda/src/pgraphnodes/shaderGenerator.cxx b/panda/src/pgraphnodes/shaderGenerator.cxx index 9f9218ed46..204aa1e91b 100644 --- a/panda/src/pgraphnodes/shaderGenerator.cxx +++ b/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; diff --git a/panda/src/pgraphnodes/uvScrollNode.cxx b/panda/src/pgraphnodes/uvScrollNode.cxx index 831c549d9f..06c2af3410 100644 --- a/panda/src/pgraphnodes/uvScrollNode.cxx +++ b/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"