summaryrefslogtreecommitdiffstats
path: root/tdecachegrind
diff options
context:
space:
mode:
authorSerghei Amelian <serghei.amelian@gmail.com>2012-02-14 20:55:22 +0200
committerSerghei Amelian <serghei.amelian@gmail.com>2012-02-14 20:55:22 +0200
commitadee843c4d5c8fbce75abd3a768d643392e4ea90 (patch)
tree6b4ab90028fc79ca1cfaeda61c0f66aaef7ed9fe /tdecachegrind
parentbfb0bc00e959ed3cac6cf4e517a24de50446be50 (diff)
downloadtdesdk-adee843c4d5c8fbce75abd3a768d643392e4ea90.zip
tdesdk-adee843c4d5c8fbce75abd3a768d643392e4ea90.tar.gz
[tdesdk/cmake] added forgotten files
Diffstat (limited to 'tdecachegrind')
-rw-r--r--tdecachegrind/CMakeLists.txt21
-rw-r--r--tdecachegrind/ConfigureChecks.cmake12
-rw-r--r--tdecachegrind/converters/CMakeLists.txt15
-rw-r--r--tdecachegrind/pics/CMakeLists.txt14
-rw-r--r--tdecachegrind/pics/hicolor/CMakeLists.txt12
-rw-r--r--tdecachegrind/tdecachegrind/CMakeLists.txt50
6 files changed, 124 insertions, 0 deletions
diff --git a/tdecachegrind/CMakeLists.txt b/tdecachegrind/CMakeLists.txt
new file mode 100644
index 0000000..8c2da80
--- /dev/null
+++ b/tdecachegrind/CMakeLists.txt
@@ -0,0 +1,21 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+set( KCACHEGRIND_VERSION "0.4.6kde" )
+configure_file( version.h.in version.h @ONLY )
+configure_file( tdecachegrind.spec.in kcachegrind.spec @ONLY )
+configure_file( tdecachegrind.lsm.in kcachegrind.lsm @ONLY )
+
+add_subdirectory( tdecachegrind )
+add_subdirectory( pics )
+add_subdirectory( converters )
diff --git a/tdecachegrind/ConfigureChecks.cmake b/tdecachegrind/ConfigureChecks.cmake
new file mode 100644
index 0000000..e9b5cc2
--- /dev/null
+++ b/tdecachegrind/ConfigureChecks.cmake
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+check_function_exists( mmap HAVE_MMAP )
diff --git a/tdecachegrind/converters/CMakeLists.txt b/tdecachegrind/converters/CMakeLists.txt
new file mode 100644
index 0000000..03e86bc
--- /dev/null
+++ b/tdecachegrind/converters/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( PROGRAMS
+ hotshot2calltree op2calltree pprof2calltree
+ dprof2calltree memprof2calltree
+ DESTINATION ${BIN_INSTALL_DIR} )
diff --git a/tdecachegrind/pics/CMakeLists.txt b/tdecachegrind/pics/CMakeLists.txt
new file mode 100644
index 0000000..ee29446
--- /dev/null
+++ b/tdecachegrind/pics/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( hicolor )
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/tdecachegrind/icons )
diff --git a/tdecachegrind/pics/hicolor/CMakeLists.txt b/tdecachegrind/pics/hicolor/CMakeLists.txt
new file mode 100644
index 0000000..1c162a1
--- /dev/null
+++ b/tdecachegrind/pics/hicolor/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/tdecachegrind/icons )
diff --git a/tdecachegrind/tdecachegrind/CMakeLists.txt b/tdecachegrind/tdecachegrind/CMakeLists.txt
new file mode 100644
index 0000000..cd284c3
--- /dev/null
+++ b/tdecachegrind/tdecachegrind/CMakeLists.txt
@@ -0,0 +1,50 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( )
+install( FILES tdecachegrind.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES tdecachegrindui.rc tips DESTINATION ${DATA_INSTALL_DIR}/kcachegrind )
+install( FILES x-tdecachegrind.desktop DESTINATION ${MIME_INSTALL_DIR}/application )
+
+
+##### tdecachegrind (executable) ##################
+
+tde_add_executable( tdecachegrind AUTOMOC
+ SOURCES
+ functionselectionbase.ui stackselectionbase.ui partselectionbase.ui
+ configdlgbase.ui loader.cpp cachegrindloader.cpp treemap.cpp pool.cpp
+ main.cpp configuration.cpp functionselection.cpp coverage.cpp
+ partgraph.cpp toplevel.cpp stackselection.cpp stackbrowser.cpp
+ subcost.cpp tracedata.cpp partselection.cpp configdlg.cpp
+ utils.cpp fixcost.cpp traceitemview.cpp instrview.cpp tabview.cpp
+ sourceview.cpp callmapview.cpp callview.cpp coverageview.cpp
+ costtypeview.cpp partview.cpp listutils.cpp costtypeitem.cpp
+ multiview.cpp callitem.cpp coverageitem.cpp sourceitem.cpp
+ costlistitem.cpp partlistitem.cpp functionitem.cpp instritem.cpp
+ stackitem.cpp callgraphview.cpp
+ LINK kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)