diff options
Diffstat (limited to 'klaptopdaemon')
-rw-r--r-- | klaptopdaemon/CMakeLists.txt | 100 | ||||
-rw-r--r-- | klaptopdaemon/applnk/CMakeLists.txt | 19 | ||||
-rw-r--r-- | klaptopdaemon/pics/CMakeLists.txt | 18 | ||||
-rw-r--r-- | klaptopdaemon/pics/actions/CMakeLists.txt | 15 |
4 files changed, 152 insertions, 0 deletions
diff --git a/klaptopdaemon/CMakeLists.txt b/klaptopdaemon/CMakeLists.txt new file mode 100644 index 0000000..c5dad83 --- /dev/null +++ b/klaptopdaemon/CMakeLists.txt @@ -0,0 +1,100 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( pics ) +add_subdirectory( applnk ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### klaptop_acpi_helper (executable) ########## + +tde_add_executable( klaptop_acpi_helper + SOURCES acpi_helper.cpp + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### klaptop_check (executable) ################ + +tde_add_executable( klaptop_check + SOURCES laptop_check.cpp + LINK kio-shared kcmlaptop-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### kcmlaptop (shared) ######################## + +tde_add_library( kcmlaptop SHARED AUTOMOC + SOURCES portable.cpp smapidev.c + daemon_state.cpp wake_laptop.cpp + krichtextlabel.cpp + LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kcm_laptop (kpart) ######################## + +tde_add_kpart( kcm_laptop AUTOMOC + SOURCES battery.cpp main.cpp pcmcia.cpp + power.cpp warning.cpp acpi.cpp sony.cpp + profile.cpp buttons.cpp apm.cpp + ${CMAKE_CURRENT_BINARY_DIR}/crcresult.h + LINK kio-shared kcmlaptop-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) +# crcresult.h header is included here cause it is +# generated during build time. Otherwice the +# dependency on it won't be handeled correctly. + +##### kded_klaptopdaemon (kpart) ################ + +tde_add_kpart( kded_klaptopdaemon AUTOMOC + SOURCES laptop_daemon.cpp kpcmcia.cpp + xautolock.cc kpcmciainfo.cpp daemondock.cpp + xautolock_diy.c xautolock_engine.c + laptop_daemon.skel + LINK kio-shared kcmlaptop-shared + kdeinit_kded-shared ${XTEST_LIBRARIES} + ${XSCREENSAVER_LIBRARIES} ${XEXT_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### crcresult.h (header) ###################### +# FIXME: that should potentialy break the cross +# compilation, If it is possible in +# generall. + +add_executable( makecrc makecrc.cpp ) +target_link_libraries( makecrc z ) + +get_target_property( MAKECRC_EXE makecrc LOCATION) + +add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/crcresult.h + COMMAND + ${MAKECRC_EXE} >${CMAKE_CURRENT_BINARY_DIR}/crcresult.h + DEPENDS makecrc + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) + diff --git a/klaptopdaemon/applnk/CMakeLists.txt b/klaptopdaemon/applnk/CMakeLists.txt new file mode 100644 index 0000000..926b330 --- /dev/null +++ b/klaptopdaemon/applnk/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES laptop.desktop pcmcia.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( FILES klaptopdaemon.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kded +) + diff --git a/klaptopdaemon/pics/CMakeLists.txt b/klaptopdaemon/pics/CMakeLists.txt new file mode 100644 index 0000000..59821c3 --- /dev/null +++ b/klaptopdaemon/pics/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( actions ) + +##### icons ##################################### + +tde_install_icons( laptop_battery laptop + laptop_pcmcia klaptopdaemon) + diff --git a/klaptopdaemon/pics/actions/CMakeLists.txt b/klaptopdaemon/pics/actions/CMakeLists.txt new file mode 100644 index 0000000..f99a710 --- /dev/null +++ b/klaptopdaemon/pics/actions/CMakeLists.txt @@ -0,0 +1,15 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( + DESTINATION ${DATA_INSTALL_DIR}/klaptopdaemon/icons +) + |