From c1a8ee04fbfe9851c1f788bcdcf3a5339ce1e478 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sat, 10 Nov 2012 20:47:02 -0600 Subject: Initial conversion to cmake. Thanks to Fat-Zer. --- kmilo/CMakeLists.txt | 38 ++++++++++++++++++++++ kmilo/asus/CMakeLists.txt | 41 +++++++++++++++++++++++ kmilo/delli8k/CMakeLists.txt | 41 +++++++++++++++++++++++ kmilo/demo/CMakeLists.txt | 39 ++++++++++++++++++++++ kmilo/generic/CMakeLists.txt | 41 +++++++++++++++++++++++ kmilo/kmilo_kvaio/CMakeLists.txt | 51 +++++++++++++++++++++++++++++ kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt | 41 +++++++++++++++++++++++ kmilo/kmilod/CMakeLists.txt | 54 +++++++++++++++++++++++++++++++ kmilo/powerbook/CMakeLists.txt | 41 +++++++++++++++++++++++ kmilo/powerbook2/CMakeLists.txt | 41 +++++++++++++++++++++++ kmilo/thinkpad/CMakeLists.txt | 43 ++++++++++++++++++++++++ kmilo/thinkpad/kcmthinkpad/CMakeLists.txt | 42 ++++++++++++++++++++++++ 12 files changed, 513 insertions(+) create mode 100644 kmilo/CMakeLists.txt create mode 100644 kmilo/asus/CMakeLists.txt create mode 100644 kmilo/delli8k/CMakeLists.txt create mode 100644 kmilo/demo/CMakeLists.txt create mode 100644 kmilo/generic/CMakeLists.txt create mode 100644 kmilo/kmilo_kvaio/CMakeLists.txt create mode 100644 kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt create mode 100644 kmilo/kmilod/CMakeLists.txt create mode 100644 kmilo/powerbook/CMakeLists.txt create mode 100644 kmilo/powerbook2/CMakeLists.txt create mode 100644 kmilo/thinkpad/CMakeLists.txt create mode 100644 kmilo/thinkpad/kcmthinkpad/CMakeLists.txt (limited to 'kmilo') diff --git a/kmilo/CMakeLists.txt b/kmilo/CMakeLists.txt new file mode 100644 index 0000000..5aba7c1 --- /dev/null +++ b/kmilo/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( kmilod ) +add_subdirectory( generic ) + +if( WITH_ASUS ) + add_subdirectory( asus ) +endif( WITH_ASUS ) + +if( WITH_POWERBOOK AND WITH_POWERBOOK2 ) + tde_message_fatal( "WITH_POWERBOOK and WITH_POWERBOOK2 cannot be setted concurently" ) +elseif( WITH_POWERBOOK ) + add_subdirectory( powerbook ) +elseif( WITH_POWERBOOK2 ) + add_subdirectory( powerbook2 ) +endif( ) + +if( WITH_VAIO ) + add_subdirectory( kmilo_kvaio ) +endif( WITH_VAIO ) + +if( WITH_THINKPAD ) + add_subdirectory( thinkpad ) +endif( WITH_THINKPAD ) + +if( WITH_I8K ) + add_subdirectory( delli8k ) +endif( WITH_I8K ) + diff --git a/kmilo/asus/CMakeLists.txt b/kmilo/asus/CMakeLists.txt new file mode 100644 index 0000000..377e9e5 --- /dev/null +++ b/kmilo/asus/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kmilo/kmilod + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${CMAKE_BINARY_DIR}/kmilo/kmilod +) + + +##### kmilo_asus (kpart) ######################## + +tde_add_kpart( kmilo_asus AUTOMOC + SOURCES asus.cpp + LINK kio-shared kmilo-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kmilo_asus.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kmilo +) + diff --git a/kmilo/delli8k/CMakeLists.txt b/kmilo/delli8k/CMakeLists.txt new file mode 100644 index 0000000..9d0ef93 --- /dev/null +++ b/kmilo/delli8k/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kmilo/kmilod + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${CMAKE_BINARY_DIR}/kmilo/kmilod +) + + +##### kmilo_delli8k (kpart) ##################### + +tde_add_kpart( kmilo_delli8k AUTOMOC + SOURCES delli8k.cpp + LINK kio-shared kmilo-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kmilo_delli8k.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kmilo +) + diff --git a/kmilo/demo/CMakeLists.txt b/kmilo/demo/CMakeLists.txt new file mode 100644 index 0000000..fb2098f --- /dev/null +++ b/kmilo/demo/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kmilo_demo (kpart) ######################## + +tde_add_kpart( kmilo_demo AUTOMOC + SOURCES demo.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kmilo_demo.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kmilo +) + diff --git a/kmilo/generic/CMakeLists.txt b/kmilo/generic/CMakeLists.txt new file mode 100644 index 0000000..d89ab88 --- /dev/null +++ b/kmilo/generic/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kmilo/kmilod + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${CMAKE_SOURCE_DIR}/kmilo/kmilod +) + + +##### kmilo_generic (kpart) ##################### + +tde_add_kpart( kmilo_generic AUTOMOC + SOURCES generic_monitor.cpp + LINK kio-shared kmilo-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kmilo_generic.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kmilo +) + diff --git a/kmilo/kmilo_kvaio/CMakeLists.txt b/kmilo/kmilo_kvaio/CMakeLists.txt new file mode 100644 index 0000000..137bc6a --- /dev/null +++ b/kmilo/kmilo_kvaio/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( kcmkvaio ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kmilo/kmilod + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${CMAKE_BINARY_DIR}/kmilo/kmilod +) + +##### kvaiodriverinterface (shared) ############# + +# this object is required by kcmvaio in subdirectory +tde_add_library( kvaiodriverinterface STATIC_PIC AUTOMOC + SOURCES kvaiodriverinterface.cpp +) + + +##### kmilo_kvaio (kpart) ####################### + +tde_add_kpart( kmilo_kvaio AUTOMOC + SOURCES kmilo_kvaio.cpp kvaio.cpp + LINK kio-shared kmilo-shared + kvaiodriverinterface-static + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kmilo_kvaio.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kmilo +) + diff --git a/kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt b/kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt new file mode 100644 index 0000000..74de2f3 --- /dev/null +++ b/kmilo/kmilo_kvaio/kcmkvaio/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kmilo/kmilo-vaio + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${CMAKE_BINARY_DIR}/kmilo/kmilo-vaio +) + + +##### kcm_kvaio (kpart) ######################### + +tde_add_kpart( kcm_kvaio AUTOMOC + SOURCES kcmkvaio_general.ui main.cpp + LINK tdeui-shared kvaiodriverinterface-static + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kvaio.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + diff --git a/kmilo/kmilod/CMakeLists.txt b/kmilo/kmilod/CMakeLists.txt new file mode 100644 index 0000000..f3913ab --- /dev/null +++ b/kmilo/kmilod/CMakeLists.txt @@ -0,0 +1,54 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kmilo (shared) ############################ + +tde_add_library( kmilo SHARED + SOURCES monitor.cpp displayskin.cpp + VERSION 1.0.0 + LINK tdecore-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kded_kmilod (kpart) ####################### + +tde_add_kpart( kded_kmilod AUTOMOC + SOURCES kmilod.cpp kmilod.skel defaultskin.cpp + defaultwidget.ui kmilointerface.cpp + LINK kio-shared kmilo-shared tdeinit_kded-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kmilod.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kded +) + +install( FILES kmilopluginsvc.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR}/kmilo +) + diff --git a/kmilo/powerbook/CMakeLists.txt b/kmilo/powerbook/CMakeLists.txt new file mode 100644 index 0000000..461d2d2 --- /dev/null +++ b/kmilo/powerbook/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kmilo/kmilod + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${CMAKE_BINARY_DIR}/kmilo/kmilod +) + + +##### kmilo_powerbook (kpart) ################### + +tde_add_kpart( kmilo_powerbook AUTOMOC + SOURCES pb_monitor.cpp + LINK kio-shared kmilo-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kmilo_powerbook.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kmilo +) + diff --git a/kmilo/powerbook2/CMakeLists.txt b/kmilo/powerbook2/CMakeLists.txt new file mode 100644 index 0000000..461d2d2 --- /dev/null +++ b/kmilo/powerbook2/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kmilo/kmilod + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${CMAKE_BINARY_DIR}/kmilo/kmilod +) + + +##### kmilo_powerbook (kpart) ################### + +tde_add_kpart( kmilo_powerbook AUTOMOC + SOURCES pb_monitor.cpp + LINK kio-shared kmilo-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kmilo_powerbook.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kmilo +) + diff --git a/kmilo/thinkpad/CMakeLists.txt b/kmilo/thinkpad/CMakeLists.txt new file mode 100644 index 0000000..7907fd8 --- /dev/null +++ b/kmilo/thinkpad/CMakeLists.txt @@ -0,0 +1,43 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( kcmthinkpad ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kmilo/kmilod + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${CMAKE_BINARY_DIR}/kmilo/kmilod +) + + +##### kmilo_thinkpad (kpart) #################### + +tde_add_kpart( kmilo_thinkpad AUTOMOC + SOURCES thinkpad.cpp + LINK kio-shared kmilo-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kmilo_thinkpad.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kmilo +) + diff --git a/kmilo/thinkpad/kcmthinkpad/CMakeLists.txt b/kmilo/thinkpad/kcmthinkpad/CMakeLists.txt new file mode 100644 index 0000000..0a79639 --- /dev/null +++ b/kmilo/thinkpad/kcmthinkpad/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +add_definitions( + -DKDE_BINDIR="${BIN_INSTALL_DIR}" +) + +##### kcm_thinkpad (kpart) ###################### + +tde_add_kpart( kcm_thinkpad AUTOMOC + SOURCES kcmthinkpad_general.ui main.cpp + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES thinkpad.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + -- cgit v1.2.3