summaryrefslogtreecommitdiffstats
path: root/style/CMakeLists.txt
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-24 18:25:45 -0600
committerTimothy Pearson <[email protected]>2011-11-24 18:25:45 -0600
commit1899f45e7a77a15dcb9c8aa6b382a3fed578142d (patch)
tree940b1d14ac560255f2159ab8d1f27f1d6cc9be38 /style/CMakeLists.txt
parent61572100ab37db76f3e33cb9a56114a70b4dbcc0 (diff)
downloadtde-style-qtcurve-1899f45e7a77a15dcb9c8aa6b382a3fed578142d.tar.gz
tde-style-qtcurve-1899f45e7a77a15dcb9c8aa6b382a3fed578142d.zip
Initial conversion to standard CMake system
Diffstat (limited to 'style/CMakeLists.txt')
-rw-r--r--style/CMakeLists.txt67
1 files changed, 46 insertions, 21 deletions
diff --git a/style/CMakeLists.txt b/style/CMakeLists.txt
index c3260ca..db8254d 100644
--- a/style/CMakeLists.txt
+++ b/style/CMakeLists.txt
@@ -1,22 +1,47 @@
-if (NOT QTC_QT_ONLY)
- set(qtcurve_SRCS qtcurve.cpp pixmaps.h)
- add_definitions(-DQT_PLUGIN)
- include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/common)
- link_directories(${KDE3_LIB_DIR})
- trinity_automoc(${qtcurve_SRCS})
- add_library(qtcurve MODULE ${qtcurve_SRCS})
- set_target_properties(qtcurve PROPERTIES PREFIX "")
- target_link_libraries(qtcurve ${QT_LIBRARIES} tdefx)
- install(TARGETS qtcurve LIBRARY DESTINATION ${KDE3_LIB_DIR}/trinity/plugins/styles)
- install(FILES qtcurve.themerc DESTINATION ${KDE3PREFIX}/share/apps/kstyle/themes)
-else (NOT QTC_QT_ONLY)
- set(qtcurve_MOC_CLASSES qtcurve.h qtc_kstyle.h)
- QTCURVE_QT_WRAP_CPP(qtcurve_MOC_SRCS ${qtcurve_MOC_CLASSES})
- set(qtcurve_SRCS qtcurve.cpp qtc_kstyle.cpp pixmaps.h)
- include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${QT_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/common)
- add_library(qtcurve MODULE ${qtcurve_SRCS} ${qtcurve_MOC_SRCS})
- set_target_properties(qtcurve PROPERTIES PREFIX "")
- target_link_libraries(qtcurve ${QT_LIBRARIES})
- install(TARGETS qtcurve LIBRARY DESTINATION ${QT_PLUGINS_DIR}/styles)
-endif (NOT QTC_QT_ONLY)
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+add_subdirectory( config )
+
+add_definitions(
+ -DQT_PLUGIN
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES qtcurve.themerc DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes )
+
+
+##### plastik ###################################
+
+set( target qtcurve )
+
+set( ${target}_SRCS
+ qtcurve.cpp pixmaps.h
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK tdefx-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles
+)