Browse Source

Add CMakeLists for panda/pevent.

kestred 12 years ago
parent
commit
5f23b506d9
2 changed files with 55 additions and 0 deletions
  1. 1 0
      panda/CMakeLists.txt
  2. 54 0
      panda/src/event/CMakeLists.txt

+ 1 - 0
panda/CMakeLists.txt

@@ -10,6 +10,7 @@ add_subdirectory(src/pipeline)
 add_subdirectory(src/putil)
 add_subdirectory(src/putil)
 add_subdirectory(src/pstatclient)
 add_subdirectory(src/pstatclient)
 add_subdirectory(src/linmath)
 add_subdirectory(src/linmath)
+add_subdirectory(src/event)
 
 
 #add_subdirectory(src/gobj)
 #add_subdirectory(src/gobj)
 #add_subdirectory(src/pgraph)
 #add_subdirectory(src/pgraph)

+ 54 - 0
panda/src/event/CMakeLists.txt

@@ -0,0 +1,54 @@
+set(P3EVENT_HEADERS
+    asyncTask.h asyncTask.I
+    asyncTaskChain.h asyncTaskChain.I
+    asyncTaskCollection.h asyncTaskCollection.I
+    asyncTaskManager.h asyncTaskManager.I
+    asyncTaskPause.h asyncTaskPause.I
+    asyncTaskSequence.h asyncTaskSequence.I
+    config_event.h
+    buttonEvent.I buttonEvent.h
+    buttonEventList.I buttonEventList.h
+    genericAsyncTask.h genericAsyncTask.I
+    pointerEvent.I pointerEvent.h
+    pointerEventList.I pointerEventList.h
+    pythonTask.h pythonTask.I
+    event.I event.h eventHandler.h eventHandler.I
+    eventParameter.I eventParameter.h
+    eventQueue.I eventQueue.h eventReceiver.h
+    pt_Event.h throw_event.I throw_event.h 
+)
+
+set(P3EVENT_SOURCES
+    asyncTask.cxx
+    asyncTaskChain.cxx
+    asyncTaskCollection.cxx
+    asyncTaskManager.cxx
+    asyncTaskPause.cxx
+    asyncTaskSequence.cxx
+    buttonEvent.cxx
+    buttonEventList.cxx
+    genericAsyncTask.cxx
+    pointerEvent.cxx
+    pointerEventList.cxx
+    pythonTask.cxx
+    config_event.cxx event.cxx eventHandler.cxx 
+    eventParameter.cxx eventQueue.cxx eventReceiver.cxx
+    pt_Event.cxx
+)
+
+composite_sources(p3event P3EVENT_SOURCES)
+add_library(p3event ${P3EVENT_HEADERS} ${P3EVENT_SOURCES})
+target_link_libraries(p3event p3linmath p3pstatclient)
+target_interrogate(p3event ALL)
+
+#begin test_bin_target
+  #define TARGET test_task
+  #define LOCAL_LIBS $[LOCAL_LIBS] p3mathutil
+  #define OTHER_LIBS \
+#   p3interrogatedb:c p3dconfig:c p3dtoolbase:c p3prc:c \
+#   p3dtoolutil:c p3dtool:m p3dtoolconfig:m p3pystub
+
+  #define SOURCES \
+#    test_task.cxx
+
+#end test_bin_target