From 1899f45e7a77a15dcb9c8aa6b382a3fed578142d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Nov 2011 18:25:45 -0600 Subject: Initial conversion to standard CMake system --- style/CMakeLists.txt | 67 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 21 deletions(-) (limited to 'style') 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 +) -- cgit v1.2.1