]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Compile the contrib plugins
authorMattia Basaglia <mattia.basaglia@gmail.com>
Tue, 28 Jul 2015 09:39:15 +0000 (11:39 +0200)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Tue, 28 Jul 2015 09:39:15 +0000 (11:39 +0200)
17 files changed:
CMakeLists.txt
contrib/CMakeLists.txt
contrib/bkgrnd2d/CMakeLists.txt [new file with mode: 0644]
contrib/bobtoolz/CMakeLists.txt [new file with mode: 0644]
contrib/bobtoolz/dialogs/AboutDialog.h
contrib/brushexport/CMakeLists.txt [new file with mode: 0644]
contrib/camera/CMakeLists.txt [new file with mode: 0644]
contrib/gtkgensurf/CMakeLists.txt [new file with mode: 0644]
contrib/hydratoolz/CMakeLists.txt [new file with mode: 0644]
contrib/prtview/CMakeLists.txt [new file with mode: 0644]
contrib/shaderplug/CMakeLists.txt [new file with mode: 0644]
contrib/sunplug/CMakeLists.txt [new file with mode: 0644]
contrib/ufoaiplug/CMakeLists.txt [new file with mode: 0644]
libs/cmdlib/CMakeLists.txt
libs/mathlib/CMakeLists.txt
libs/profile/CMakeLists.txt
libs/xml/CMakeLists.txt

index 6ba761e5b744ce396f0b2d6b5ac18a15f98de42c..917a5247f7142f46d19d0cb6c3a6dced1f2c8bb4 100644 (file)
@@ -371,5 +371,5 @@ target_link_libraries(radiant
     splines
     stream
     string
-    xml
+    xmllib
 )
index 446de8c4f92dec3e5316d8f385e258450709b174..4502b276b568307d9595c8cd851e2e806b18ee38 100644 (file)
 # Todo split further and actually compile the plugins
 
-set(BKGRND2DLIST
-    contrib/bkgrnd2d/bkgrnd2d.cpp
-    contrib/bkgrnd2d/bkgrnd2d.h
-    contrib/bkgrnd2d/dialog.cpp
-    contrib/bkgrnd2d/dialog.h
-    contrib/bkgrnd2d/plugin.cpp
-    contrib/bkgrnd2d/plugin.h
-)
-
-set(BOBTOOLZLIST
-    contrib/bobtoolz/dialogs/AboutDialog.cpp
-    contrib/bobtoolz/dialogs/AboutDialog.h
-    contrib/bobtoolz/dialogs/AutoCaulkDialog.cpp
-    contrib/bobtoolz/dialogs/AutoCaulkDialog.h
-    contrib/bobtoolz/dialogs/AutoCaulkStartDialog.cpp
-    contrib/bobtoolz/dialogs/AutoCaulkStartDialog.h
-    contrib/bobtoolz/dialogs/BrushCheckDialog.h
-    contrib/bobtoolz/dialogs/DoorDialog.cpp
-    contrib/bobtoolz/dialogs/DoorDialog.h
-    contrib/bobtoolz/dialogs/IntersectDialog.cpp
-    contrib/bobtoolz/dialogs/IntersectDialog.h
-    contrib/bobtoolz/dialogs/IntersectInfoDialog.cpp
-    contrib/bobtoolz/dialogs/IntersectInfoDialog.h
-    contrib/bobtoolz/dialogs/PolygonDialog.cpp
-    contrib/bobtoolz/dialogs/PolygonDialog.h
-    contrib/bobtoolz/dialogs/StairDialog.cpp
-    contrib/bobtoolz/dialogs/StairDialog.h
-    contrib/bobtoolz/dialogs/TextureResetDialog.cpp
-    contrib/bobtoolz/dialogs/TextureResetDialog.h
-    contrib/bobtoolz/dialogs/brushcheckdialog.cpp
-    contrib/bobtoolz/dialogs/dialogs-gtk.cpp
-    contrib/bobtoolz/dialogs/dialogs-gtk.h
-    contrib/bobtoolz/dialogs/pathplotterdialog.cpp
-    contrib/bobtoolz/dialogs/pathplotterdialog.h
-    contrib/bobtoolz/CPortals.h
-    contrib/bobtoolz/DBobView.cpp
-    contrib/bobtoolz/DBobView.h
-    contrib/bobtoolz/DBrush.cpp
-    contrib/bobtoolz/DBrush.h
-    contrib/bobtoolz/DEPair.cpp
-    contrib/bobtoolz/DEPair.h
-    contrib/bobtoolz/DEntity.cpp
-    contrib/bobtoolz/DEntity.h
-    contrib/bobtoolz/DMap.cpp
-    contrib/bobtoolz/DMap.h
-    contrib/bobtoolz/DPatch.cpp
-    contrib/bobtoolz/DPatch.h
-    contrib/bobtoolz/DPlane.cpp
-    contrib/bobtoolz/DPlane.h
-    contrib/bobtoolz/DPoint.cpp
-    contrib/bobtoolz/DPoint.h
-    contrib/bobtoolz/DShape.cpp
-    contrib/bobtoolz/DShape.h
-    contrib/bobtoolz/DTrainDrawer.cpp
-    contrib/bobtoolz/DTrainDrawer.h
-    contrib/bobtoolz/DTreePlanter.cpp
-    contrib/bobtoolz/DTreePlanter.h
-    contrib/bobtoolz/DVisDrawer.cpp
-    contrib/bobtoolz/DVisDrawer.h
-    contrib/bobtoolz/DWinding.cpp
-    contrib/bobtoolz/DWinding.h
-    contrib/bobtoolz/ScriptParser.cpp
-    contrib/bobtoolz/ScriptParser.h
-    contrib/bobtoolz/StdAfx.cpp
-    contrib/bobtoolz/StdAfx.h
-    contrib/bobtoolz/bobToolz-GTK.cpp
-    contrib/bobtoolz/bobToolz.h
-    contrib/bobtoolz/bsploader.cpp
-    contrib/bobtoolz/bsploader.h
-    contrib/bobtoolz/cportals.cpp
-    contrib/bobtoolz/ctfToolz-GTK.cpp
-    contrib/bobtoolz/ctfresource_gtk.h
-    contrib/bobtoolz/funchandlers-GTK.cpp
-    contrib/bobtoolz/funchandlers-ctf-GTK.cpp
-    contrib/bobtoolz/funchandlers.cpp
-    contrib/bobtoolz/funchandlers.h
-    contrib/bobtoolz/lists.cpp
-    contrib/bobtoolz/lists.h
-    contrib/bobtoolz/misc.cpp
-    contrib/bobtoolz/misc.h
-    contrib/bobtoolz/resource-gtk.h
-    contrib/bobtoolz/resource.h
-    contrib/bobtoolz/shapes.cpp
-    contrib/bobtoolz/shapes.h
-    contrib/bobtoolz/visfind.cpp
-    contrib/bobtoolz/visfind.h
-)
-
-set(BRUSHEXPORTLIST
-    contrib/brushexport/callbacks.cpp
-    contrib/brushexport/callbacks.h
-    contrib/brushexport/export.cpp
-    contrib/brushexport/export.h
-    contrib/brushexport/interface.cpp
-    contrib/brushexport/plugin.cpp
-    contrib/brushexport/plugin.h
-    contrib/brushexport/support.cpp
-    contrib/brushexport/support.h
-)
-
-set(CAMERALIST
-    contrib/camera/camera.cpp
-    contrib/camera/camera.h
-    contrib/camera/dialogs.cpp
-    contrib/camera/dialogs.h
-    contrib/camera/dialogs_common.cpp
-    contrib/camera/funchandlers.cpp
-    contrib/camera/funchandlers.h
-    contrib/camera/listener.cpp
-    contrib/camera/listener.h
-    contrib/camera/misc.cpp
-    contrib/camera/misc.h
-    contrib/camera/renderer.cpp
-    contrib/camera/renderer.h
-)
-
-set(GTKGENSURFLIST
-    contrib/gtkgensurf/bitmap.cpp
-    contrib/gtkgensurf/dec.cpp
-    contrib/gtkgensurf/face.cpp
-    contrib/gtkgensurf/font.cpp
-    contrib/gtkgensurf/gendlgs.cpp
-    contrib/gtkgensurf/gendlgs.h
-    contrib/gtkgensurf/genmap.cpp
-    contrib/gtkgensurf/gensurf.cpp
-    contrib/gtkgensurf/gensurf.h
-    contrib/gtkgensurf/heretic.cpp
-    contrib/gtkgensurf/plugin.cpp
-    contrib/gtkgensurf/triangle.c
-    contrib/gtkgensurf/triangle.h
-    contrib/gtkgensurf/view.cpp
-)
-
-set(HYDRATOOLZLIST
-    contrib/hydratoolz/plugin.cpp
-    contrib/hydratoolz/plugin.h
-)
-
-set(PRTVIEWLIST
-    contrib/prtview/AboutDialog.cpp
-    contrib/prtview/AboutDialog.h
-    contrib/prtview/ConfigDialog.cpp
-    contrib/prtview/ConfigDialog.h
-    contrib/prtview/LoadPortalFileDialog.cpp
-    contrib/prtview/LoadPortalFileDialog.h
-    contrib/prtview/portals.cpp
-    contrib/prtview/portals.h
-    contrib/prtview/prtview.cpp
-    contrib/prtview/prtview.h
-)
-
-set(SHADERPLUGLIST
-    contrib/shaderplug/shaderplug.cpp
-    contrib/shaderplug/shaderplug.h
-)
-
-set(SUNPLUGLIST
-    contrib/sunplug/sunplug.cpp
-    contrib/sunplug/sunplug.h
-)
-
-set(UFOAIPLUGLIST
-    contrib/ufoaiplug/ufoai.cpp
-    contrib/ufoaiplug/ufoai.h
-    contrib/ufoaiplug/ufoai_filters.cpp
-    contrib/ufoaiplug/ufoai_filters.h
-    contrib/ufoaiplug/ufoai_gtk.cpp
-    contrib/ufoaiplug/ufoai_gtk.h
-    contrib/ufoaiplug/ufoai_level.cpp
-    contrib/ufoaiplug/ufoai_level.h
-)
+macro(radiant_plugin name)
+       message(STATUS "Found Plugin ${name}")
+       add_library(${name} MODULE ${ARGN})
+endmacro()
+
+set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins")
+
+# add_subdirectory(bkgrnd2d)
+add_subdirectory(bobtoolz)
+add_subdirectory(brushexport)
+# add_subdirectory(camera)
+# add_subdirectory(gtkgensurf)
+# add_subdirectory(hydratoolz)
+add_subdirectory(prtview)
+add_subdirectory(shaderplug)
+add_subdirectory(sunplug)
+add_subdirectory(ufoaiplug)
diff --git a/contrib/bkgrnd2d/CMakeLists.txt b/contrib/bkgrnd2d/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3bff0ad
--- /dev/null
@@ -0,0 +1,9 @@
+
+radiant_plugin(bkgrnd2d
+    bkgrnd2d.cpp
+    bkgrnd2d.h
+    dialog.cpp
+    dialog.h
+    plugin.cpp
+    plugin.h
+)
diff --git a/contrib/bobtoolz/CMakeLists.txt b/contrib/bobtoolz/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8d8a959
--- /dev/null
@@ -0,0 +1,80 @@
+radiant_plugin(bobtoolz
+#     dialogs/AboutDialog.cpp
+#     dialogs/AboutDialog.h
+#     dialogs/AutoCaulkDialog.cpp
+#     dialogs/AutoCaulkDialog.h
+#     dialogs/AutoCaulkStartDialog.cpp
+#     dialogs/AutoCaulkStartDialog.h
+#     dialogs/BrushCheckDialog.h
+#     dialogs/DoorDialog.cpp
+#     dialogs/DoorDialog.h
+#     dialogs/IntersectDialog.cpp
+#     dialogs/IntersectDialog.h
+#     dialogs/IntersectInfoDialog.cpp
+#     dialogs/IntersectInfoDialog.h
+#     dialogs/PolygonDialog.cpp
+#     dialogs/PolygonDialog.h
+#     dialogs/StairDialog.cpp
+#     dialogs/StairDialog.h
+#     dialogs/TextureResetDialog.cpp
+#     dialogs/TextureResetDialog.h
+#     dialogs/brushcheckdialog.cpp
+    dialogs/dialogs-gtk.cpp
+    dialogs/dialogs-gtk.h
+#     dialogs/pathplotterdialog.cpp
+#     dialogs/pathplotterdialog.h
+    CPortals.h
+    DBobView.cpp
+    DBobView.h
+    DBrush.cpp
+    DBrush.h
+    DEPair.cpp
+    DEPair.h
+    DEntity.cpp
+    DEntity.h
+    DMap.cpp
+    DMap.h
+    DPatch.cpp
+    DPatch.h
+    DPlane.cpp
+    DPlane.h
+    DPoint.cpp
+    DPoint.h
+    DShape.cpp
+    DShape.h
+    DTrainDrawer.cpp
+    DTrainDrawer.h
+    DTreePlanter.cpp
+    DTreePlanter.h
+    DVisDrawer.cpp
+    DVisDrawer.h
+    DWinding.cpp
+    DWinding.h
+    ScriptParser.cpp
+    ScriptParser.h
+#     StdAfx.cpp
+#     StdAfx.h
+    bobToolz-GTK.cpp
+    bobToolz.h
+    bsploader.cpp
+    bsploader.h
+    cportals.cpp
+#     ctfToolz-GTK.cpp
+#     ctfresource_gtk.h
+    funchandlers-GTK.cpp
+#     funchandlers-ctf-GTK.cpp
+#     funchandlers.cpp
+    funchandlers.h
+    lists.cpp
+    lists.h
+    misc.cpp
+    misc.h
+#     resource-gtk.h
+#     resource.h
+    shapes.cpp
+    shapes.h
+    visfind.cpp
+    visfind.h
+)
+
+target_link_libraries(bobtoolz cmdlib mathlib profile)
index 64b4eb2cf3ccf4da5d5eda422673907136b398fe..bc0fa04a996db7a01a723bea8843e47b6da86db5 100644 (file)
@@ -23,6 +23,8 @@
 #if _MSC_VER >= 1000
 #pragma once
 #endif // _MSC_VER >= 1000
+
+
 // AboutDialog.h : header file
 //
 
diff --git a/contrib/brushexport/CMakeLists.txt b/contrib/brushexport/CMakeLists.txt
new file mode 100644 (file)
index 0000000..95f8279
--- /dev/null
@@ -0,0 +1,12 @@
+
+radiant_plugin(brushexport
+    callbacks.cpp
+    callbacks.h
+    export.cpp
+    export.h
+    interface.cpp
+    plugin.cpp
+    plugin.h
+    support.cpp
+    support.h
+)
diff --git a/contrib/camera/CMakeLists.txt b/contrib/camera/CMakeLists.txt
new file mode 100644 (file)
index 0000000..194eb9e
--- /dev/null
@@ -0,0 +1,16 @@
+
+radiant_plugin(camera
+    camera.cpp
+    camera.h
+    dialogs.cpp
+    dialogs.h
+    dialogs_common.cpp
+    funchandlers.cpp
+    funchandlers.h
+    listener.cpp
+    listener.h
+    misc.cpp
+    misc.h
+    renderer.cpp
+    renderer.h
+)
diff --git a/contrib/gtkgensurf/CMakeLists.txt b/contrib/gtkgensurf/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1ee3fbd
--- /dev/null
@@ -0,0 +1,17 @@
+
+radiant_plugin(gtkgensurf
+    bitmap.cpp
+    dec.cpp
+    face.cpp
+    font.cpp
+    gendlgs.cpp
+    gendlgs.h
+    genmap.cpp
+    gensurf.cpp
+    gensurf.h
+    heretic.cpp
+    plugin.cpp
+    triangle.c
+    triangle.h
+    view.cpp
+)
diff --git a/contrib/hydratoolz/CMakeLists.txt b/contrib/hydratoolz/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d9cb183
--- /dev/null
@@ -0,0 +1,5 @@
+
+radiant_plugin(hydratoolz
+    plugin.cpp
+    plugin.h
+)
diff --git a/contrib/prtview/CMakeLists.txt b/contrib/prtview/CMakeLists.txt
new file mode 100644 (file)
index 0000000..66205cf
--- /dev/null
@@ -0,0 +1,15 @@
+
+radiant_plugin(prtview
+    AboutDialog.cpp
+    AboutDialog.h
+    ConfigDialog.cpp
+    ConfigDialog.h
+    LoadPortalFileDialog.cpp
+    LoadPortalFileDialog.h
+    portals.cpp
+    portals.h
+    prtview.cpp
+    prtview.h
+)
+
+target_link_libraries(prtview profile)
diff --git a/contrib/shaderplug/CMakeLists.txt b/contrib/shaderplug/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a8f3e7d
--- /dev/null
@@ -0,0 +1,7 @@
+
+radiant_plugin(shaderplug
+    shaderplug.cpp
+    shaderplug.h
+)
+
+target_link_libraries(shaderplug xmllib)
diff --git a/contrib/sunplug/CMakeLists.txt b/contrib/sunplug/CMakeLists.txt
new file mode 100644 (file)
index 0000000..24043c9
--- /dev/null
@@ -0,0 +1,4 @@
+radiant_plugin(sunplug
+    sunplug.cpp
+    sunplug.h
+)
diff --git a/contrib/ufoaiplug/CMakeLists.txt b/contrib/ufoaiplug/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5989407
--- /dev/null
@@ -0,0 +1,11 @@
+
+radiant_plugin(ufoaiplug
+    ufoai.cpp
+    ufoai.h
+    ufoai_filters.cpp
+    ufoai_filters.h
+    ufoai_gtk.cpp
+    ufoai_gtk.h
+    ufoai_level.cpp
+    ufoai_level.h
+)
index d49000347145aa4d4ef76abb3e3ac2c70c6673de..b37587b63828b6e17e5cada191e5e441c69fded3 100644 (file)
@@ -1,4 +1,4 @@
 
-add_library(cmdlib
+add_library(cmdlib SHARED
     cmdlib.cpp
 )
index ad8113d7a6d158d26fb60b87c0745ca00fe86aa7..9d33ceae762eb8056b019a3bec6720f0d568379c 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(mathlib
+add_library(mathlib SHARED
     bbox.c
     line.c
     m4x4.c
index c0393b4fe63f507725057c0640679eabb6e56bfa..bc5882c5156bbfeb6d12f752b3fbd1e896b43efa 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(profile
+add_library(profile SHARED
     file.cpp
     file.h
     profile.cpp
index e5f56cd8627f465ee4ac6f3f3b465ec4097b039b..4de0de07c11c5eac9e19dd1076e597d0aeab2c91 100644 (file)
@@ -2,7 +2,7 @@
 find_package(LibXml2 REQUIRED)
 include_directories(${LIBXML2_INCLUDE_DIR})
 
-add_library(xml
+add_library(xmllib SHARED
     ixml.cpp
     ixml.h
     xmlelement.cpp
@@ -14,4 +14,4 @@ add_library(xml
     xmlwriter.cpp
     xmlwriter.h
 )
-target_link_libraries(xml ${LIBXML2_LIBRARIES})
+target_link_libraries(xmllib ${LIBXML2_LIBRARIES})