summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-11 20:40:19 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-11 20:40:19 +0000
commit9c8150b75ff42d23cefed07e1a07bb3c06ec9850 (patch)
tree68de4b0565b386bc8bfdae69fc4643f79a6242af
parent561cd5cd3e14f39d20d02eed6d86f95f4146eea9 (diff)
downloadtdegraphics-9c8150b75ff42d23cefed07e1a07bb3c06ec9850.tar.gz
tdegraphics-9c8150b75ff42d23cefed07e1a07bb3c06ec9850.zip
[kdegraphics/kpovmodeler] added cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1231435 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--CMakeLists.txt2
-rw-r--r--kpovmodeler/CMakeLists.txt137
-rw-r--r--kpovmodeler/ConfigureChecks.cmake23
-rw-r--r--kpovmodeler/pics/CMakeLists.txt13
-rw-r--r--kpovmodeler/pics/crystalsvg/CMakeLists.txt12
-rw-r--r--kpovmodeler/pics/locolor/CMakeLists.txt12
6 files changed, 199 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b9b2b961..8ed8e7bb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,6 +69,7 @@ option( BUILD_KOOKA "Build kooka" ${BUILD_ALL} )
option( BUILD_KVIEW "Build kview" ${BUILD_ALL} )
option( BUILD_KRULER "Build kruler" ${BUILD_ALL} )
option( BUILD_KPDF "Build kpdf" ${BUILD_ALL} )
+option( BUILD_KPOVMODELER "Build kpovmodeler" ${BUILD_ALL} )
option( BUILD_KSVG "Build ksvg" ${BUILD_ALL} )
option( BUILD_KVIEWSHELL "Build kviewshell" ${BUILD_ALL} )
option( BUILD_LIBKSCAN "Build libkscan" ${BUILD_ALL} )
@@ -112,6 +113,7 @@ tde_conditional_add_subdirectory( BUILD_KOOKA kooka )
tde_conditional_add_subdirectory( BUILD_KVIEW kview )
tde_conditional_add_subdirectory( BUILD_KRULER kruler )
tde_conditional_add_subdirectory( BUILD_KPDF kpdf )
+tde_conditional_add_subdirectory( BUILD_KPOVMODELER kpovmodeler )
tde_conditional_add_subdirectory( BUILD_KSVG ksvg )
tde_conditional_add_subdirectory( BUILD_KVIEWSHELL kviewshell )
tde_conditional_add_subdirectory( BUILD_LIBKSCAN libkscan )
diff --git a/kpovmodeler/CMakeLists.txt b/kpovmodeler/CMakeLists.txt
new file mode 100644
index 00000000..1d8c9df2
--- /dev/null
+++ b/kpovmodeler/CMakeLists.txt
@@ -0,0 +1,137 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${GLU_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( kpovmodeler_doc kpovmodeler )
+
+install( FILES
+ kpovmodeler.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+install( FILES
+ kpovmodelershell.rc kpovmodelerui.rc kpovmodelerbrowser.rc
+ povraydocmap.xml baseinsertrules.xml questionmark.png
+ DESTINATION ${DATA_INSTALL_DIR}/kpovmodeler )
+
+
+##### kpovmodeler (shared) ######################
+
+tde_add_library( kpovmodeler SHARED AUTOMOC
+ SOURCES
+ pmpart.cpp pmfactory.cpp pmview.cpp pmshell.cpp pmobjectdrag.cpp pmtreeview.cpp
+ pmmessage.cpp pmtreeviewitem.cpp pmerrordialog.cpp pminsertpopup.cpp
+ pminserterrordialog.cpp pmglview.cpp pmrendermanager.cpp pmobjectselect.cpp
+ pmrendermodesdialog.cpp pmpovrayrenderwidget.cpp pmpovraywidget.cpp
+ pmpovrayoutputwidget.cpp pmsettingsdialog.cpp pmcolorsettings.cpp
+ pmgridsettings.cpp pmlayoutsettings.cpp pmobjectlibrarysettings.cpp
+ pmobjectsettings.cpp pmpluginsettings.cpp pmpovraysettings.cpp
+ pmpreviewsettings.cpp pmopenglsettings.cpp pmdockwidget.cpp
+ pmdockwidget_private.cpp pmviewlayoutmanager.cpp pmviewbase.cpp
+ pmviewfactory.cpp pmunknownview.cpp pmdragwidget.cpp pmprototypemanager.cpp
+ pmobject.cpp pmcompositeobject.cpp pmgraphicalobject.cpp pmsolidobject.cpp
+ pmscene.cpp pmglobalsettings.cpp pmskysphere.cpp pmrainbow.cpp pmfog.cpp
+ pmbox.cpp pmsphere.cpp pmblob.cpp pmblobsphere.cpp pmblobcylinder.cpp
+ pmtext.cpp pmjuliafractal.cpp pmcylinder.cpp pmcone.cpp pmtorus.cpp
+ pmplane.cpp pmpolynom.cpp pmdisc.cpp pmbicubicpatch.cpp pmtriangle.cpp
+ pmlathe.cpp pmprism.cpp pmsor.cpp pmsqe.cpp pmheightfield.cpp
+ pmheightfieldroam.cpp pmcomment.cpp pmraw.cpp pmnamedobject.cpp
+ pmtranslate.cpp pmscale.cpp pmrotate.cpp pmpovraymatrix.cpp pmcsg.cpp
+ pmcamera.cpp pmboundedby.cpp pmclippedby.cpp pmlight.cpp pmlookslike.cpp
+ pmprojectedthrough.cpp pmtexturebase.cpp pmtexture.cpp pmpigment.cpp
+ pmsolidcolor.cpp pmlistpattern.cpp pmquickcolor.cpp pmpattern.cpp
+ pmblendmapmodifiers.cpp pmtexturemap.cpp pmnormal.cpp pmslope.cpp pmwarp.cpp
+ pmfinish.cpp pminterior.cpp pmmedia.cpp pmmaterial.cpp pmmaterialmap.cpp
+ pmdensity.cpp pmimagemap.cpp pmbumpmap.cpp pmisosurface.cpp pmradiosity.cpp
+ pmglobalphotons.cpp pmphotons.cpp pmlightgroup.cpp pminteriortexture.cpp
+ pmspheresweep.cpp pmmesh.cpp pmdetailobject.cpp pmdeclare.cpp pmobjectlink.cpp
+ pmrecursiveobjectiterator.cpp pmaddcommand.cpp pmcommandmanager.cpp
+ pmdatachangecommand.cpp pmdeletecommand.cpp pmmovecommand.cpp
+ pmdialogview.cpp pmdialogeditbase.cpp pmgraphicalobjectedit.cpp
+ pmnamedobjectedit.cpp pmsolidobjectedit.cpp pmskysphereedit.cpp
+ pmglobalsettingsedit.cpp pmrainbowedit.cpp pmfogedit.cpp pmboxedit.cpp
+ pmsphereedit.cpp pmblobedit.cpp pmblobsphereedit.cpp pmblobcylinderedit.cpp
+ pmtextedit.cpp pmjuliafractaledit.cpp pmcylinderedit.cpp pmconeedit.cpp
+ pmtorusedit.cpp pmplaneedit.cpp pmpolynomedit.cpp pmheightfieldedit.cpp
+ pmlatheedit.cpp pmprismedit.cpp pmsoredit.cpp pmsqeedit.cpp pmdiscedit.cpp
+ pmbicubicpatchedit.cpp pmtriangleedit.cpp pmcommentedit.cpp pmrawedit.cpp
+ pmrotateedit.cpp pmscaleedit.cpp pmtranslateedit.cpp pmpovraymatrixedit.cpp
+ pmcsgedit.cpp pmcameraedit.cpp pmlightedit.cpp pmboundedbyedit.cpp
+ pmclippedbyedit.cpp pmlineedits.cpp pmvectorlistedit.cpp pmcoloredit.cpp
+ pmlinkedit.cpp pmvectoredit.cpp pmpalettevalueedit.cpp pmformulalabel.cpp
+ pmtexturebaseedit.cpp pmtextureedit.cpp pmpigmentedit.cpp pmsolidcoloredit.cpp
+ pmlistpatternedit.cpp pmquickcoloredit.cpp pmpatternedit.cpp
+ pmblendmapmodifiersedit.cpp pmimagemapedit.cpp pmtexturemapedit.cpp
+ pmbumpmapedit.cpp pmmaterialmapedit.cpp pmnormaledit.cpp pmslopeedit.cpp
+ pmfinishedit.cpp pmwarpedit.cpp pminterioredit.cpp pmmediaedit.cpp
+ pmmaterialedit.cpp pmdensityedit.cpp pmdeclareedit.cpp pmobjectlinkedit.cpp
+ pmisosurfaceedit.cpp pmradiosityedit.cpp pmglobalphotonsedit.cpp
+ pmphotonsedit.cpp pmlightgroupedit.cpp pminteriortextureedit.cpp
+ pmspheresweepedit.cpp pmmeshedit.cpp pmdetailobjectedit.cpp
+ pmcontrolpoint.cpp pm3dcontrolpoint.cpp pm2dcontrolpoint.cpp
+ pmsorcontrolpoint.cpp pmtranslatecontrolpoint.cpp pmrotatecontrolpoint.cpp
+ pmscalecontrolpoint.cpp pmvectorcontrolpoint.cpp pmdistancecontrolpoint.cpp
+ pmplanenormalcontrolpoint.cpp pmmemento.cpp pmmapmemento.cpp
+ pmsplinememento.cpp pmprismmemento.cpp pmpalettevaluememento.cpp
+ pmiomanager.cpp pmpovrayformat.cpp pmpovray31format.cpp pmpovray35format.cpp
+ pmpovray31serialization.cpp pmpovray35serialization.cpp pmscanner.cpp
+ pmparser.cpp pmxmlparser.cpp pmpovrayparser.cpp pmserializer.cpp
+ pmoutputdevice.cpp pmxmlhelper.cpp pmfiledialog.cpp pmpalettevalue.cpp
+ pmvector.cpp pmmath.cpp pmmatrix.cpp pmviewstructure.cpp pmline.cpp
+ pmcolor.cpp pmpoint.cpp pmsymboltable.cpp pmactions.cpp pmsplinesegment.cpp
+ pmsorsegment.cpp pmpolynomexponents.cpp pmvariant.cpp pmmetaobject.cpp
+ pmenumproperty.cpp pmface.cpp pmrendermode.cpp pmresourcelocator.cpp
+ pmtruetypecache.cpp pmdocumentationmap.cpp pminsertrulesystem.cpp
+ pmlibrarymanager.cpp pmlibraryhandle.cpp pmlibraryhandleedit.cpp
+ pmlibraryobject.cpp pmlibraryentrypreview.cpp pmlibrarybrowser.cpp
+ pmlibraryiconview.cpp pmlibraryobjectsearch.cpp pmpluginmanager.cpp
+ pmpartiface.skel
+ VERSION 0.0.0
+ LINK kparts-shared ${GLU_LIBRARIES} ${XMU_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### libkpovmodelerpart (module) ###############
+
+configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_dummy_cpp.cmake dummy.cpp COPYONLY )
+
+tde_add_kpart( libkpovmodelerpart AUTOMOC
+ SOURCES dummy.cpp
+ LINK kpovmodeler-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kpovmodeler (executable) ##################
+
+tde_add_executable( kpovmodeler AUTOMOC
+ SOURCES main.cpp
+ LINK kpovmodeler-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kpovmodeler/ConfigureChecks.cmake b/kpovmodeler/ConfigureChecks.cmake
new file mode 100644
index 00000000..3b325475
--- /dev/null
+++ b/kpovmodeler/ConfigureChecks.cmake
@@ -0,0 +1,23 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# glu
+pkg_search_module( GLU glu )
+if( NOT GLU_FOUND )
+ tde_message_fatal( "glu is required, but was not found on your system" )
+endif( )
+
+
+# xmu
+pkg_search_module( XMU xmu )
+if( NOT XMU_FOUND )
+ tde_message_fatal( "xmu is required, but was not found on your system" )
+endif( )
diff --git a/kpovmodeler/pics/CMakeLists.txt b/kpovmodeler/pics/CMakeLists.txt
new file mode 100644
index 00000000..30d24f5b
--- /dev/null
+++ b/kpovmodeler/pics/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( crystalsvg )
+add_subdirectory( locolor )
diff --git a/kpovmodeler/pics/crystalsvg/CMakeLists.txt b/kpovmodeler/pics/crystalsvg/CMakeLists.txt
new file mode 100644
index 00000000..31ce0030
--- /dev/null
+++ b/kpovmodeler/pics/crystalsvg/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kpovmodeler/icons )
diff --git a/kpovmodeler/pics/locolor/CMakeLists.txt b/kpovmodeler/pics/locolor/CMakeLists.txt
new file mode 100644
index 00000000..31ce0030
--- /dev/null
+++ b/kpovmodeler/pics/locolor/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kpovmodeler/icons )