From 7ffba8afee76edba6433d97864119501731742e8 Mon Sep 17 00:00:00 2001 From: samelian Date: Tue, 5 Oct 2010 19:41:05 +0000 Subject: [kdelibs] added initial cmake support git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1182854 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kstyles/CMakeLists.txt | 20 +++++++++ kstyles/highcolor/CMakeLists.txt | 42 ++++++++++++++++++ kstyles/highcontrast/CMakeLists.txt | 50 +++++++++++++++++++++ kstyles/highcontrast/config/CMakeLists.txt | 41 +++++++++++++++++ kstyles/keramik/CMakeLists.txt | 71 ++++++++++++++++++++++++++++++ kstyles/kthemestyle/CMakeLists.txt | 42 ++++++++++++++++++ kstyles/light/CMakeLists.txt | 42 ++++++++++++++++++ kstyles/plastik/CMakeLists.txt | 49 +++++++++++++++++++++ kstyles/plastik/config/CMakeLists.txt | 41 +++++++++++++++++ kstyles/riscos/CMakeLists.txt | 30 +++++++++++++ kstyles/themes/CMakeLists.txt | 23 ++++++++++ kstyles/utils/CMakeLists.txt | 12 +++++ kstyles/utils/installtheme/CMakeLists.txt | 38 ++++++++++++++++ 13 files changed, 501 insertions(+) create mode 100644 kstyles/CMakeLists.txt create mode 100644 kstyles/highcolor/CMakeLists.txt create mode 100644 kstyles/highcontrast/CMakeLists.txt create mode 100644 kstyles/highcontrast/config/CMakeLists.txt create mode 100644 kstyles/keramik/CMakeLists.txt create mode 100644 kstyles/kthemestyle/CMakeLists.txt create mode 100644 kstyles/light/CMakeLists.txt create mode 100644 kstyles/plastik/CMakeLists.txt create mode 100644 kstyles/plastik/config/CMakeLists.txt create mode 100644 kstyles/riscos/CMakeLists.txt create mode 100644 kstyles/themes/CMakeLists.txt create mode 100644 kstyles/utils/CMakeLists.txt create mode 100644 kstyles/utils/installtheme/CMakeLists.txt (limited to 'kstyles') diff --git a/kstyles/CMakeLists.txt b/kstyles/CMakeLists.txt new file mode 100644 index 000000000..e7881dd04 --- /dev/null +++ b/kstyles/CMakeLists.txt @@ -0,0 +1,20 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( plastik ) +add_subdirectory( highcolor ) +add_subdirectory( highcontrast ) +add_subdirectory( themes ) +add_subdirectory( light ) +add_subdirectory( kthemestyle ) +add_subdirectory( riscos ) +add_subdirectory( utils ) +add_subdirectory( keramik ) diff --git a/kstyles/highcolor/CMakeLists.txt b/kstyles/highcolor/CMakeLists.txt new file mode 100644 index 000000000..309f0f44e --- /dev/null +++ b/kstyles/highcolor/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### highcolor ################################# + +set( target highcolor ) + +set( ${target}_SRCS + highcolor.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/highcontrast/CMakeLists.txt b/kstyles/highcontrast/CMakeLists.txt new file mode 100644 index 000000000..ca2f998fc --- /dev/null +++ b/kstyles/highcontrast/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (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( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES highcontrast.themerc DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes ) + + +##### highcontrast ############################## + +set( target highcontrast ) + +set( ${target}_SRCS + highcontrast.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/highcontrast/config/CMakeLists.txt b/kstyles/highcontrast/config/CMakeLists.txt new file mode 100644 index 000000000..8c634688f --- /dev/null +++ b/kstyles/highcontrast/config/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kstyle_highcontrast_config ################ + +set( target kstyle_highcontrast_config ) + +set( ${target}_SRCS + highcontrastconfig.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kstyles/keramik/CMakeLists.txt b/kstyles/keramik/CMakeLists.txt new file mode 100644 index 000000000..61776a98d --- /dev/null +++ b/kstyles/keramik/CMakeLists.txt @@ -0,0 +1,71 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -UQT_NO_ASCII_CAST + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### genembed ################################## + +set( target genembed ) + +set( ${target}_SRCS + genembed.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kdefx-shared +) + + +##### pixmaps.keramik ########################### + +file(GLOB _pics "${CMAKE_CURRENT_SOURCE_DIR}/pics/*.png" ) + +add_custom_command( + OUTPUT pixmaps.keramik keramikrc.h + COMMAND ./genembed ${_pics} 2>/dev/null > pixmaps.keramik + DEPENDS genembed ) + + +##### keramik ################################### + +set( target keramik ) + +set( ${target}_SRCS + keramik.cpp pixmaploader.cpp gradients.cpp colorutil.cpp +) + +set_source_files_properties( pixmaploader.cpp PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pixmaps.keramik ) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/kthemestyle/CMakeLists.txt b/kstyles/kthemestyle/CMakeLists.txt new file mode 100644 index 000000000..94277030f --- /dev/null +++ b/kstyles/kthemestyle/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kthemestyle ############################### + +set( target kthemestyle ) + +set( ${target}_SRCS + kthemebase.cpp kthemestyle.cpp kstyledirs.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/light/CMakeLists.txt b/kstyles/light/CMakeLists.txt new file mode 100644 index 000000000..1da874a17 --- /dev/null +++ b/kstyles/light/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### light ##################################### + +set( target light ) + +set( ${target}_SRCS + light.cpp lightstyle-v2.cpp lightstyle-v3.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/plastik/CMakeLists.txt b/kstyles/plastik/CMakeLists.txt new file mode 100644 index 000000000..d8694654c --- /dev/null +++ b/kstyles/plastik/CMakeLists.txt @@ -0,0 +1,49 @@ +################################################# +# +# (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( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES plastik.themerc DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes ) + + +##### plastik ################################### + +set( target plastik ) + +set( ${target}_SRCS + plastik.cpp misc.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/plastik/config/CMakeLists.txt b/kstyles/plastik/config/CMakeLists.txt new file mode 100644 index 000000000..89da74a16 --- /dev/null +++ b/kstyles/plastik/config/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kstyle_plastik_config ###################### + +set( target kstyle_plastik_config ) + +set( ${target}_SRCS + plastikconf.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kstyles/riscos/CMakeLists.txt b/kstyles/riscos/CMakeLists.txt new file mode 100644 index 000000000..9ca5b25cf --- /dev/null +++ b/kstyles/riscos/CMakeLists.txt @@ -0,0 +1,30 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + arrowdown.png arrowdown_down.png arrowleft.png + arrowleft_down.png arrowright.png arrowright_down.png + arrowup.png arrowup_down.png background.png + check.png check_checked.png checkmark.png + combo.png combo_down.png hscrollback.png + hscrollbar.png hscrollbar_down.png hscrollborder.png + htab.png menu_back.png radio.png radio_down.png + raised_border.png scrollborder.png slider.png + sunk_border.png tab_up.png vscrollback.png + vscrollbar.png vscrollbar_down.png vscrollborder.png + vtab.png + DESTINATION ${DATA_INSTALL_DIR}/kstyle/pixmaps/riscos ) + +install( FILES + riscos.themerc + DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes ) diff --git a/kstyles/themes/CMakeLists.txt b/kstyles/themes/CMakeLists.txt new file mode 100644 index 000000000..bb9f8ee63 --- /dev/null +++ b/kstyles/themes/CMakeLists.txt @@ -0,0 +1,23 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + qtplatinum.themerc qtcde.themerc qtmotif.themerc + qtwindows.themerc qtsgi.themerc qtmotifplus.themerc + highcolor.themerc default.themerc b3.themerc + light-v2.themerc light-v3.themerc keramik.themerc + DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes ) + +install( FILES + kthemestylerc + DESTINATION ${CONFIG_INSTALL_DIR} ) diff --git a/kstyles/utils/CMakeLists.txt b/kstyles/utils/CMakeLists.txt new file mode 100644 index 000000000..17411c0dc --- /dev/null +++ b/kstyles/utils/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( installtheme ) diff --git a/kstyles/utils/installtheme/CMakeLists.txt b/kstyles/utils/installtheme/CMakeLists.txt new file mode 100644 index 000000000..86fa42c99 --- /dev/null +++ b/kstyles/utils/installtheme/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +##### kinstalltheme ############################# + +set( target kinstalltheme ) + +set( ${target}_SRCS + main.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kdecore-shared + DESTINATION ${BIN_INSTALL_DIR} +) -- cgit v1.2.1