]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Compile module plugins
authorMattia Basaglia <mattia.basaglia@gmail.com>
Tue, 28 Jul 2015 13:44:07 +0000 (15:44 +0200)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Tue, 28 Jul 2015 13:44:07 +0000 (15:44 +0200)
39 files changed:
CMakeLists.txt
contrib/CMakeLists.txt
libs/CMakeLists.txt
libs/container/CMakeLists.txt
libs/ddslib/CMakeLists.txt
libs/debugging/CMakeLists.txt
libs/generic/CMakeLists.txt
libs/gtkutil/CMakeLists.txt
libs/l_net/CMakeLists.txt
libs/math/CMakeLists.txt
libs/md5lib/CMakeLists.txt
libs/memory/CMakeLists.txt
libs/modulesystem/CMakeLists.txt
libs/os/CMakeLists.txt
libs/picomodel/CMakeLists.txt
libs/script/CMakeLists.txt
libs/signal/CMakeLists.txt
libs/splines/CMakeLists.txt
libs/stream/CMakeLists.txt
libs/string/CMakeLists.txt
plugins/CMakeLists.txt
plugins/archivepak/CMakeLists.txt [new file with mode: 0644]
plugins/archivewad/CMakeLists.txt [new file with mode: 0644]
plugins/archivezip/CMakeLists.txt [new file with mode: 0644]
plugins/entity/CMakeLists.txt [new file with mode: 0644]
plugins/image/CMakeLists.txt [new file with mode: 0644]
plugins/imagehl/CMakeLists.txt [new file with mode: 0644]
plugins/imagepng/CMakeLists.txt [new file with mode: 0644]
plugins/imageq2/CMakeLists.txt [new file with mode: 0644]
plugins/mapq3/CMakeLists.txt [new file with mode: 0644]
plugins/mapxml/CMakeLists.txt [new file with mode: 0644]
plugins/md3model/CMakeLists.txt [new file with mode: 0644]
plugins/model/CMakeLists.txt [new file with mode: 0644]
plugins/sample/CMakeLists.txt [new file with mode: 0644]
plugins/shaders/CMakeLists.txt [new file with mode: 0644]
plugins/spritemodel/CMakeLists.txt [new file with mode: 0644]
plugins/textool/CMakeLists.txt [new file with mode: 0644]
plugins/vfspk3/CMakeLists.txt [new file with mode: 0644]
radiant/server.cpp

index e408730580a34e10ae8356a92c9f85980ab35f05..ba2fcc8e8e23f0f0a0f7c761a30b522cb6208852 100644 (file)
@@ -174,6 +174,12 @@ include_directories(include)
 
 add_subdirectory(libs)
 include_directories(libs)
+
+macro(radiant_plugin name)
+       message(STATUS "Found Plugin ${name}")
+       add_library(${name} MODULE ${ARGN})
+endmacro()
+
 add_subdirectory(contrib)
 add_subdirectory(plugins)
 
index 4502b276b568307d9595c8cd851e2e806b18ee38..7c2aa7998b0016956560d9c414e07e375a1dfe75 100644 (file)
@@ -1,9 +1,3 @@
-# Todo split further and actually compile the plugins
-
-macro(radiant_plugin name)
-       message(STATUS "Found Plugin ${name}")
-       add_library(${name} MODULE ${ARGN})
-endmacro()
 
 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins")
 
index cc0babec0975dd3e4eb75f1452117aa7ebdc76c1..c4d4f8cb5e92644ff7148170cfd9ed35b21d0ff4 100644 (file)
@@ -22,6 +22,16 @@ add_subdirectory(stream)
 add_subdirectory(string)
 add_subdirectory(xml)
 
+add_library(etclib SHARED
+    etclib.c
+    etclib.h
+)
+
+add_library(filematch SHARED
+    filematch.c
+    filematch.h
+)
+
 add_library(libs
     archivelib.cpp
     archivelib.h
index 2e1984c2e8370018381ca98f13bc80a1aad9d33d..0159daa3d99a60527672395d9860861aab1c1eb0 100644 (file)
@@ -1,4 +1,4 @@
-add_library(container
+add_library(container SHARED
     array.cpp
     array.h
     cache.cpp
index e9c40054492f63f70f01e28fec3e816b210bc826..9a6954312bf00a6f414ce91de565345d23607dbc 100644 (file)
@@ -1,4 +1,4 @@
 
-add_library(ddslib
+add_library(ddslib SHARED
     ddslib.c
 )
index 7743f210ef7432d6b56967c9346ad0386246faa7..6209d6578970ecd2f90d81290226f9d5a6f9ebf3 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(debugging
+add_library(debugging SHARED
     debugging.cpp
     debugging.h
 )
index c7fbebe3932e91f6d76e02569d928a6c8beacf46..172515dbe7d8d1f80961e70784220ae280450684 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(generic
+add_library(generic SHARED
     arrayrange.cpp
     arrayrange.h
     bitfield.cpp
index 09be33bb084a754a379b8bfd5b658505d877956a..3356c061e8fe4543282ab0440219a0a3c916d2bf 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(gtkutil
+add_library(gtkutil SHARED
     accelerator.cpp
     accelerator.h
     button.cpp
index 29a792d715245df6273b1e39ea42079d12f884a5..1e7f25789f24f458d69ed6f743ce229f41859604 100644 (file)
@@ -8,7 +8,7 @@ if(WIN32)
 else()
     set(L_NETLIST ${L_NETLIST} l_net_berkley.c)
 endif()
-add_library(l_net ${L_NETLIST})
+add_library(l_net SHARED ${L_NETLIST})
 if(WIN32)
     target_link_libraries(l_net ws2_32)
 endif()
index 46332bfe07adf4f11b5a2fbb110f4d33d263eeea..d7b3b3d0e161c9b8cff89579e1d817fa2e635218 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(math
+add_library(math SHARED
    aabb.cpp
    aabb.h
    curve.cpp
index ed8a84a1290fbb66da8f3be5d3a7160e72964573..fe79afedec0f83b8978b817af5c5251dbb9db5ea 100644 (file)
@@ -1,4 +1,4 @@
 
-add_library(md5lib
+add_library(md5lib SHARED
     md5lib.c
 )
index 820e274a85db075d4ab0d584d95910d10317d950..8fd5f330c2465a2384a88769d9ef5b1accc6377e 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(memory
+add_library(memory SHARED
     allocator.cpp
     allocator.h
 )
index 24778356475329508d94c43181cb8e478a80069f..17cd658535707527a028114477aa24929d3392b2 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(modulesystem
+add_library(modulesystem SHARED
     moduleregistry.cpp
     moduleregistry.h
     modulesmap.cpp
index 26234d37bcbdbf3d0b2b24631f16b2c713d59320..0c8c27a903f673f7ff404b4669fbd62e70d0ce15 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(os
+add_library(os SHARED
     dir.cpp
     dir.h
     file.cpp
index 2f88a847136cbc5d175d77b59d70ee45305cee69..f54f81351f3772166b70a768510beab92ad848e1 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(picomodel
+add_library(picomodel SHARED
     lwo/clip.c
     lwo/envelope.c
     lwo/list.c
index 72b699eeff6acfbfde963d4fbd1cbf8e03aa7752..42c50cb88cf301a2636d1ef301dba799171f2aa6 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(script
+add_library(script SHARED
     scripttokeniser.cpp
     scripttokeniser.h
     scripttokenwriter.cpp
index c48c84e4e3466593688046d3565ccbd8b3ad92f8..8d02334778d4ee9dac5b02817c58404605489846 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(signal
+add_library(signal SHARED
     isignal.cpp
     isignal.h
     signal.cpp
index 5afefe02fbb7ed5514a843bd3830def76cc4ecc5..7c070cbbc53cfc9e13501331a88de8dd50c842a7 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(splines
+add_library(splines SHARED
     math_angles.cpp
     math_angles.h
     math_matrix.cpp
index dc928dfe43a401d58ec8bf2cdaba0bca073e3b8b..945f288703131b4d25456e898739374f2072cebd 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(stream
+add_library(stream SHARED
     filestream.cpp
     filestream.h
     memstream.cpp
index a0b8f1956e4fd9c129be45fa339bf6fbcdf8fc8c..0f569222e97b9c48844a0026207b2abfff687535 100644 (file)
@@ -1,5 +1,5 @@
 
-add_library(string
+add_library(string SHARED
     pooledstring.cpp
     pooledstring.h
     string.h
index a7a4adc160921255eb7fb2fa90e49f886eefe70e..b5bbc4a0aac5f57124e67188693e2c4189a1c2e5 100644 (file)
-# Todo split further and actually compile the plugins
 
-set(ARCHIVEPAKLIST
-    plugins/archivepak/archive.cpp
-    plugins/archivepak/archive.h
-    plugins/archivepak/pak.cpp
-    plugins/archivepak/pak.h
-    plugins/archivepak/plugin.cpp
-    plugins/archivepak/plugin.h
-)
-
-set(ARCHIVEWADLIST
-    plugins/archivewad/archive.cpp
-    plugins/archivewad/archive.h
-    plugins/archivewad/plugin.cpp
-    plugins/archivewad/plugin.h
-    plugins/archivewad/wad.cpp
-    plugins/archivewad/wad.h
-)
-
-set(ARCHIVEZIPLIST
-    plugins/archivezip/archive.cpp
-    plugins/archivezip/archive.h
-    plugins/archivezip/pkzip.cpp
-    plugins/archivezip/pkzip.h
-    plugins/archivezip/plugin.cpp
-    plugins/archivezip/plugin.h
-    plugins/archivezip/zlibstream.cpp
-    plugins/archivezip/zlibstream.h
-)
-
-set(ENTITYLIST
-    plugins/entity/angle.cpp
-    plugins/entity/angle.h
-    plugins/entity/angles.cpp
-    plugins/entity/angles.h
-    plugins/entity/colour.cpp
-    plugins/entity/colour.h
-    plugins/entity/curve.cpp
-    plugins/entity/curve.h
-    plugins/entity/doom3group.cpp
-    plugins/entity/doom3group.h
-    plugins/entity/eclassmodel.cpp
-    plugins/entity/eclassmodel.h
-    plugins/entity/entity.cpp
-    plugins/entity/entity.h
-    plugins/entity/filters.cpp
-    plugins/entity/filters.h
-    plugins/entity/generic.cpp
-    plugins/entity/generic.h
-    plugins/entity/group.cpp
-    plugins/entity/group.h
-    plugins/entity/keyobservers.cpp
-    plugins/entity/keyobservers.h
-    plugins/entity/light.cpp
-    plugins/entity/light.h
-    plugins/entity/miscmodel.cpp
-    plugins/entity/miscmodel.h
-    plugins/entity/model.cpp
-    plugins/entity/model.h
-    plugins/entity/modelskinkey.cpp
-    plugins/entity/modelskinkey.h
-    plugins/entity/namedentity.cpp
-    plugins/entity/namedentity.h
-    plugins/entity/namekeys.cpp
-    plugins/entity/namekeys.h
-    plugins/entity/origin.cpp
-    plugins/entity/origin.h
-    plugins/entity/plugin.cpp
-    plugins/entity/plugin.h
-    plugins/entity/rotation.cpp
-    plugins/entity/rotation.h
-    plugins/entity/scale.cpp
-    plugins/entity/scale.h
-    plugins/entity/skincache.cpp
-    plugins/entity/skincache.h
-    plugins/entity/targetable.cpp
-    plugins/entity/targetable.h
-)
-
-set(IMAGELIST
-    plugins/image/bmp.cpp
-    plugins/image/bmp.h
-    plugins/image/dds.cpp
-    plugins/image/dds.h
-    plugins/image/image.h
-    plugins/image/jpeg.cpp
-    plugins/image/jpeg.h
-    plugins/image/pcx.cpp
-    plugins/image/pcx.h
-    plugins/image/tga.cpp
-    plugins/image/tga.h
-    plugins/image/image.cpp
-    plugins/image/ktx.cpp
-    plugins/image/ktx.h
-)
-
-set(IMAGEHLLIST
-    plugins/imagehl/hlw.cpp
-    plugins/imagehl/hlw.h
-    plugins/imagehl/imagehl.cpp
-    plugins/imagehl/imagehl.h
-    plugins/imagehl/mip.cpp
-    plugins/imagehl/mip.h
-    plugins/imagehl/sprite.cpp
-    plugins/imagehl/sprite.h
-)
-
-set(IMAGEPNGLIST
-    plugins/imagepng/plugin.cpp
-    plugins/imagepng/plugin.h
-)
-
-set(IMAGEQ2LIST
-    plugins/imageq2/imageq2.cpp
-    plugins/imageq2/imageq2.h
-    plugins/imageq2/wal.cpp
-    plugins/imageq2/wal.h
-    plugins/imageq2/wal32.cpp
-    plugins/imageq2/wal32.h
-)
-
-set(MAPQ3LIST
-    plugins/mapq3/parse.cpp
-    plugins/mapq3/parse.h
-    plugins/mapq3/plugin.cpp
-    plugins/mapq3/plugin.h
-    plugins/mapq3/write.cpp
-    plugins/mapq3/write.h
-)
-
-set(MAPXMLLIST
-    plugins/mapxml/plugin.cpp
-    plugins/mapxml/plugin.h
-    plugins/mapxml/xmlparse.cpp
-    plugins/mapxml/xmlparse.h
-    plugins/mapxml/xmlwrite.cpp
-    plugins/mapxml/xmlwrite.h
-)
-
-set(MD3MODELLIST
-    plugins/md3model/ident.h
-    plugins/md3model/md2.cpp
-    plugins/md3model/md2.h
-    plugins/md3model/md3.cpp
-    plugins/md3model/md3.h
-    plugins/md3model/md3normals.cpp
-    plugins/md3model/md3normals.h
-    plugins/md3model/md5.cpp
-    plugins/md3model/md5.h
-    plugins/md3model/mdc.cpp
-    plugins/md3model/mdc.h
-    plugins/md3model/mdl.cpp
-    plugins/md3model/mdl.h
-    plugins/md3model/mdlformat.cpp
-    plugins/md3model/mdlformat.h
-    plugins/md3model/mdlimage.cpp
-    plugins/md3model/mdlimage.h
-    plugins/md3model/mdlnormals.cpp
-    plugins/md3model/mdlnormals.h
-    plugins/md3model/model.cpp
-    plugins/md3model/model.h
-    plugins/md3model/plugin.cpp
-    plugins/md3model/plugin.h
-)
-
-set(MODELLIST
-    plugins/model/model.cpp
-    plugins/model/model.h
-    plugins/model/plugin.cpp
-    plugins/model/plugin.h
-)
-
-set(SAMPLELIST
-    plugins/sample/sample.cpp
-    plugins/sample/sample.h
-)
-
-set(SHADERSLIST
-    plugins/shaders/plugin.cpp
-    plugins/shaders/plugin.h
-    plugins/shaders/shaders.cpp
-    plugins/shaders/shaders.h
-)
-
-set(SPRITEMODELLIST
-    plugins/spritemodel/plugin.cpp
-    plugins/spritemodel/plugin.h
-    plugins/spritemodel/spritemodel.cpp
-    plugins/spritemodel/spritemodel.h
-)
-
-set(TEXTOOLLIST
-    plugins/textool/2DView.cpp
-    plugins/textool/2DView.h
-    plugins/textool/ControlPointsManager.cpp
-    plugins/textool/ControlPointsManager.h
-    plugins/textool/StdAfx.cpp
-    plugins/textool/StdAfx.h
-    plugins/textool/TexTool.cpp
-    plugins/textool/resource.h
-)
-
-set(VFSPK3LIST
-    plugins/vfspk3/archive.cpp
-    plugins/vfspk3/archive.h
-    plugins/vfspk3/vfs.cpp
-    plugins/vfspk3/vfs.h
-    plugins/vfspk3/vfspk3.cpp
-    plugins/vfspk3/vfspk3.h
-)
+set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/modules")
+
+add_subdirectory(archivepak)
+add_subdirectory(archivewad)
+add_subdirectory(archivezip)
+add_subdirectory(entity)
+add_subdirectory(image)
+add_subdirectory(imagehl)
+add_subdirectory(imagepng)
+add_subdirectory(imageq2)
+add_subdirectory(mapq3)
+add_subdirectory(mapxml)
+add_subdirectory(md3model)
+add_subdirectory(model)
+# add_subdirectory(sample)
+add_subdirectory(shaders)
+# add_subdirectory(spritemodel)
+# add_subdirectory(textool)
+add_subdirectory(vfspk3)
diff --git a/plugins/archivepak/CMakeLists.txt b/plugins/archivepak/CMakeLists.txt
new file mode 100644 (file)
index 0000000..bc11e42
--- /dev/null
@@ -0,0 +1,8 @@
+radiant_plugin(archivepak
+    archive.cpp
+    archive.h
+    pak.cpp
+    pak.h
+    plugin.cpp
+    plugin.h
+)
diff --git a/plugins/archivewad/CMakeLists.txt b/plugins/archivewad/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8f561e3
--- /dev/null
@@ -0,0 +1,9 @@
+
+radiant_plugin(archivewad
+    archive.cpp
+    archive.h
+    plugin.cpp
+    plugin.h
+    wad.cpp
+    wad.h
+)
diff --git a/plugins/archivezip/CMakeLists.txt b/plugins/archivezip/CMakeLists.txt
new file mode 100644 (file)
index 0000000..42ab461
--- /dev/null
@@ -0,0 +1,11 @@
+
+radiant_plugin(archivezip
+    archive.cpp
+    archive.h
+    pkzip.cpp
+    pkzip.h
+    plugin.cpp
+    plugin.h
+    zlibstream.cpp
+    zlibstream.h
+)
diff --git a/plugins/entity/CMakeLists.txt b/plugins/entity/CMakeLists.txt
new file mode 100644 (file)
index 0000000..669b8fb
--- /dev/null
@@ -0,0 +1,49 @@
+
+radiant_plugin(entity
+    angle.cpp
+    angle.h
+    angles.cpp
+    angles.h
+    colour.cpp
+    colour.h
+    curve.cpp
+    curve.h
+    doom3group.cpp
+    doom3group.h
+    eclassmodel.cpp
+    eclassmodel.h
+    entity.cpp
+    entity.h
+    filters.cpp
+    filters.h
+    generic.cpp
+    generic.h
+    group.cpp
+    group.h
+    keyobservers.cpp
+    keyobservers.h
+    light.cpp
+    light.h
+    miscmodel.cpp
+    miscmodel.h
+    model.cpp
+    model.h
+    modelskinkey.cpp
+    modelskinkey.h
+    namedentity.cpp
+    namedentity.h
+    namekeys.cpp
+    namekeys.h
+    origin.cpp
+    origin.h
+    plugin.cpp
+    plugin.h
+    rotation.cpp
+    rotation.h
+    scale.cpp
+    scale.h
+    skincache.cpp
+    skincache.h
+    targetable.cpp
+    targetable.h
+)
diff --git a/plugins/image/CMakeLists.txt b/plugins/image/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4954696
--- /dev/null
@@ -0,0 +1,21 @@
+
+radiant_plugin(image
+    bmp.cpp
+    bmp.h
+    dds.cpp
+    dds.h
+    image.h
+    jpeg.cpp
+    jpeg.h
+    pcx.cpp
+    pcx.h
+    tga.cpp
+    tga.h
+    image.cpp
+    ktx.cpp
+    ktx.h
+)
+
+find_package(JPEG REQUIRED)
+include_directories(${JPEG_INCLUDE_DIR})
+target_link_libraries(image ddslib etclib ${JPEG_LIBRARIES})
diff --git a/plugins/imagehl/CMakeLists.txt b/plugins/imagehl/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0e7deb6
--- /dev/null
@@ -0,0 +1,10 @@
+radiant_plugin(imagehl
+    hlw.cpp
+    hlw.h
+    imagehl.cpp
+    imagehl.h
+    mip.cpp
+    mip.h
+    sprite.cpp
+    sprite.h
+)
diff --git a/plugins/imagepng/CMakeLists.txt b/plugins/imagepng/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e6b32c1
--- /dev/null
@@ -0,0 +1,4 @@
+radiant_plugin(imagepng
+    plugin.cpp
+    plugin.h
+)
diff --git a/plugins/imageq2/CMakeLists.txt b/plugins/imageq2/CMakeLists.txt
new file mode 100644 (file)
index 0000000..61cae0d
--- /dev/null
@@ -0,0 +1,9 @@
+
+radiant_plugin(imageq2
+    imageq2.cpp
+    imageq2.h
+    wal.cpp
+    wal.h
+    wal32.cpp
+    wal32.h
+)
diff --git a/plugins/mapq3/CMakeLists.txt b/plugins/mapq3/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6752174
--- /dev/null
@@ -0,0 +1,8 @@
+radiant_plugin(mapq3
+    parse.cpp
+    parse.h
+    plugin.cpp
+    plugin.h
+    write.cpp
+    write.h
+)
diff --git a/plugins/mapxml/CMakeLists.txt b/plugins/mapxml/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f8ef483
--- /dev/null
@@ -0,0 +1,9 @@
+
+radiant_plugin(mapxml
+    plugin.cpp
+    plugin.h
+    xmlparse.cpp
+    xmlparse.h
+    xmlwrite.cpp
+    xmlwrite.h
+)
diff --git a/plugins/md3model/CMakeLists.txt b/plugins/md3model/CMakeLists.txt
new file mode 100644 (file)
index 0000000..580c741
--- /dev/null
@@ -0,0 +1,26 @@
+
+radiant_plugin(md3model
+    ident.h
+    md2.cpp
+    md2.h
+    md3.cpp
+    md3.h
+    md3normals.cpp
+    md3normals.h
+    md5.cpp
+    md5.h
+    mdc.cpp
+    mdc.h
+    mdl.cpp
+    mdl.h
+    mdlformat.cpp
+    mdlformat.h
+    mdlimage.cpp
+    mdlimage.h
+    mdlnormals.cpp
+    mdlnormals.h
+    model.cpp
+    model.h
+    plugin.cpp
+    plugin.h
+)
diff --git a/plugins/model/CMakeLists.txt b/plugins/model/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c40b724
--- /dev/null
@@ -0,0 +1,9 @@
+
+radiant_plugin(model
+    model.cpp
+    model.h
+    plugin.cpp
+    plugin.h
+)
+
+target_link_libraries(model picomodel)
diff --git a/plugins/sample/CMakeLists.txt b/plugins/sample/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e20f3ab
--- /dev/null
@@ -0,0 +1,5 @@
+
+radiant_plugin(sample
+    sample.cpp
+    sample.h
+)
diff --git a/plugins/shaders/CMakeLists.txt b/plugins/shaders/CMakeLists.txt
new file mode 100644 (file)
index 0000000..eeb7c24
--- /dev/null
@@ -0,0 +1,7 @@
+
+radiant_plugin(shaders
+    plugin.cpp
+    plugin.h
+    shaders.cpp
+    shaders.h
+)
diff --git a/plugins/spritemodel/CMakeLists.txt b/plugins/spritemodel/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8ec0cb2
--- /dev/null
@@ -0,0 +1,7 @@
+
+radiant_plugin(spritemodel
+    plugin.cpp
+    plugin.h
+    spritemodel.cpp
+    spritemodel.h
+)
diff --git a/plugins/textool/CMakeLists.txt b/plugins/textool/CMakeLists.txt
new file mode 100644 (file)
index 0000000..113e474
--- /dev/null
@@ -0,0 +1,11 @@
+
+radiant_plugin(textool
+    2DView.cpp
+    2DView.h
+    ControlPointsManager.cpp
+    ControlPointsManager.h
+    StdAfx.cpp
+    StdAfx.h
+    TexTool.cpp
+    resource.h
+)
diff --git a/plugins/vfspk3/CMakeLists.txt b/plugins/vfspk3/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2b0efc3
--- /dev/null
@@ -0,0 +1,11 @@
+
+radiant_plugin(vfspk3
+    archive.cpp
+    archive.h
+    vfs.cpp
+    vfs.h
+    vfspk3.cpp
+    vfspk3.h
+)
+
+target_link_libraries(vfspk3 filematch)
index bca6baa7d6421ed0b82b2f7d9cab3d5db031c1dc..10e9cf735595ed2860e2159987beaac2ea10b849 100644 (file)
@@ -152,6 +152,12 @@ typedef int ( *FunctionPointer )();
 
 DynamicLibrary( const char* filename ){
        m_library = dlopen( filename, RTLD_NOW );
+       if ( !m_library )
+       {
+               globalErrorStream() << "LoadLibrary failed: '" << filename << "'\n";
+               if ( const char* error = dlerror() )
+                       globalErrorStream() << "GetLastError: " << error;
+       }
 }
 ~DynamicLibrary(){
        if ( !failed() ) {