summaryrefslogtreecommitdiffstats
path: root/libkdchart
diff options
context:
space:
mode:
Diffstat (limited to 'libkdchart')
-rw-r--r--libkdchart/CMakeLists.txt102
1 files changed, 51 insertions, 51 deletions
diff --git a/libkdchart/CMakeLists.txt b/libkdchart/CMakeLists.txt
index f64baa8..9878b1e 100644
--- a/libkdchart/CMakeLists.txt
+++ b/libkdchart/CMakeLists.txt
@@ -1,51 +1,51 @@
-INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
- ${ZLIB_INCLUDE_DIR} )
-
-########### next target ###############
-
-SET(libkmm_kdchart_la_SOURCES
- KDChartAreaPainter.cpp
- KDChartAxesPainter.cpp
- KDChartAxisParams.cpp
- KDChartAxisParamsWrapper.cpp
- KDChartBarPainter.cpp
- KDChartBaseSeries.cpp
- KDChartBWPainter.cpp
- KDChart.cpp
- KDChartCustomBox.cpp
- KDChartCustomBoxWrapper.cpp
- KDChartDataIntern.cpp
- KDChartEnums.cpp
- KDChartHiLoPainter.cpp
- KDChartLinesPainter.cpp
- KDChartPainter.cpp
- KDChartParams.cpp
- KDChartParams_frame.cpp
- KDChartParams_io.cpp
- KDChartParamsWrapper.cpp
- KDChartPiePainter.cpp
- KDChartPlaneSeries.cpp
- KDChartPolarPainter.cpp
- KDChartPropertySet.cpp
- KDChartRingPainter.cpp
- KDChartSeriesCollection.cpp
- KDChartTableBase.cpp
- KDChartTableDataWrapper.cpp
- KDChartTextPiece.cpp
- KDChartVectorSeries.cpp
- KDChartVectorTable.cpp
- KDChartWidget.cpp
- KDDrawText.cpp
- KDFrame.cpp
- KDFrameProfileSection.cpp
- KDXMLTools.cpp
- )
-
-KDE3_AUTOMOC(${libkmm_kdchart_la_SOURCES})
-ADD_LIBRARY(kmm_kdchart SHARED ${libkmm_kdchart_la_SOURCES})
-SET_TARGET_PROPERTIES(kmm_kdchart PROPERTIES VERSION 0.0.0 SOVERSION 0)
-TARGET_LINK_LIBRARIES(kmm_kdchart ${QT_AND_TDECORE_LIBS} ${ZLIB_LIBRARIES})
-
-########### install files ###############
-INSTALL(TARGETS kmm_kdchart
- DESTINATION lib)
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kmm_kdchart (static)
+
+tde_add_library( kmm_kdchart STATIC_PIC AUTOMOC
+ SOURCES
+ KDChart.cpp KDChartAreaPainter.cpp KDChartAxesPainter.cpp
+ KDChartAxisParams.cpp KDChartBarPainter.cpp KDChartBaseSeries.cpp
+ KDChartBWPainter.cpp KDChartCustomBox.cpp KDChartDataIntern.cpp
+ KDChartHiLoPainter.cpp KDChartLinesPainter.cpp KDChartPainter.cpp
+ KDChartParams.cpp KDChartParams_frame.cpp KDChartParams_io.cpp
+ KDChartPiePainter.cpp KDChartPlaneSeries.cpp KDChartPolarPainter.cpp
+ KDChartPropertySet.cpp KDChartRingPainter.cpp KDChartSeriesCollection.cpp
+ KDChartTableBase.cpp KDChartTextPiece.cpp KDChartVectorSeries.cpp
+ KDChartVectorTable.cpp KDChartWidget.cpp KDDrawText.cpp KDFrame.cpp
+ KDFrameProfileSection.cpp KDXMLTools.cpp KDChartEnums.cpp
+ KDChartAxisParamsWrapper.cpp KDChartCustomBoxWrapper.cpp
+ KDChartParamsWrapper.cpp KDChartTableDataWrapper.cpp
+)
+
+
+##### kmm_kdchart (shared)
+
+configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake dummy.cpp COPYONLY )
+
+tde_add_library( kmm_kdchart SHARED AUTOMOC
+ SOURCES
+ dummy.cpp
+
+ VERSION 0.0.0
+
+ EMBED
+ kmm_kdchart-static
+
+ LINK
+ tdecore-shared
+
+ DESTINATION ${LIB_INSTALL_DIR}
+)