[kgraphviewer-devel] [KGraphViewer] f1a7836: Add missing CMakeLists files, oops

Kevin Funk krf at electrostorm.net
Fri Dec 10 18:21:48 CET 2010


	A	 src/shared/CMakeLists.txt	 [License: Trivialfile.]


	A	 src/kgraphviz/CMakeLists.txt	 [License: Trivialfile.]

commit f1a7836c28e95a53a986410a7fcd6a40423da879
Author: Kevin Funk <krf at electrostorm.net>
Date:   Fri Dec 10 18:14:32 2010 +0100

    Add missing CMakeLists files, oops

diff --git a/src/kgraphviz/CMakeLists.txt b/src/kgraphviz/CMakeLists.txt
new file mode 100644
index 0000000..19cea98
--- /dev/null
+++ b/src/kgraphviz/CMakeLists.txt
@@ -0,0 +1,52 @@
+include_directories(
+  # TODO: Remove these include dirs
+  ${CMAKE_CURRENT_SOURCE_DIR}/../part
+  ${CMAKE_CURRENT_SOURCE_DIR}/../..
+  ${CMAKE_CURRENT_SOURCE_DIR}/..
+
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  #${CMAKE_CURRENT_BINARY_DIR}
+  ${Boost_INCLUDE_DIRS}
+  ${graphviz_INCLUDE_DIRECTORIES}
+)
+
+link_directories(
+    ${CMAKE_BINARY_DIR}/lib
+    ${LIB_INSTALL_DIR}
+)
+
+add_subdirectory(support)
+
+set( kgraphvz_LIB_SRCS
+  canvasedge.cpp
+  canvaselement.cpp
+  canvasnode.cpp
+  canvassubgraph.cpp
+
+  graphedge.cpp
+  graphexporter.cpp
+  graphelement.cpp
+  graphnode.cpp
+  graphsubgraph.cpp
+  dotgraph.cpp
+
+  dotgraphview.cpp
+  pannerview.cpp
+
+  support/loadagraphthread.cpp
+  support/layoutagraphthread.cpp
+  support/dot2qtconsts.cpp
+  support/dotgrammar.cpp
+  support/DotGraphParsingHelper.cpp
+  support/FontsCache.cpp
+)
+
+kde4_add_library(kgraphviz SHARED ${kgraphvz_LIB_SRCS})
+
+add_definitions(-DQT_STL)
+target_link_libraries(kgraphviz ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KDEUI_LIBRARY} ${KDE4_KFILE_LIBRARY} ${KDE4_KDECORE_LIBRARY} ${graphviz_LIBRARIES})
+set_target_properties(kgraphviz PROPERTIES VERSION 1.0 SOVERSION 1 OUTPUT_NAME kgraphviz )
+
+
+### install
+install(TARGETS kgraphviz ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/src/shared/CMakeLists.txt b/src/shared/CMakeLists.txt
new file mode 100644
index 0000000..b19c9be
--- /dev/null
+++ b/src/shared/CMakeLists.txt
@@ -0,0 +1,2 @@
+install(FILES kgraphviewer_interface.h DESTINATION ${INCLUDE_INSTALL_DIR}/kgraphviewer/ COMPONENT Devel)
+install(FILES kgraphviewer_export.h DESTINATION ${INCLUDE_INSTALL_DIR}/kgraphviewer/ COMPONENT Devel)


More information about the kgraphviewer-devel mailing list