diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-01-30 11:42:53 +0100 |
---|---|---|
committer | gregory guy <g-gregory@gmx.fr> | 2019-01-30 11:42:53 +0100 |
commit | d4155deb8d425efa01e2d2e9332ecfe4f12ccb9c (patch) | |
tree | 79dbcd781a717bf2c736243de0afbb6de0d170b1 /kshutdownlockout | |
parent | 8ecce8449d1f8e512b3f5ea03531cf85ce762916 (diff) | |
download | kshutdown-d4155deb8d425efa01e2d2e9332ecfe4f12ccb9c.tar.gz kshutdown-d4155deb8d425efa01e2d2e9332ecfe4f12ccb9c.zip |
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'kshutdownlockout')
-rw-r--r-- | kshutdownlockout/CMakeLists.txt | 35 | ||||
-rw-r--r-- | kshutdownlockout/lockout.cpp | 7 |
2 files changed, 39 insertions, 3 deletions
diff --git a/kshutdownlockout/CMakeLists.txt b/kshutdownlockout/CMakeLists.txt new file mode 100644 index 0000000..a98caee --- /dev/null +++ b/kshutdownlockout/CMakeLists.txt @@ -0,0 +1,35 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kshutdownlockout_panelapplet (kpart) + +tde_add_kpart( kshutdownlockout_panelapplet AUTOMOC + + SOURCES + lockout.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES kshutdownlockout.desktop + DESTINATION ${DATA_INSTALL_DIR}/kicker/applets +) diff --git a/kshutdownlockout/lockout.cpp b/kshutdownlockout/lockout.cpp index d1cd5d2..419a1ad 100644 --- a/kshutdownlockout/lockout.cpp +++ b/kshutdownlockout/lockout.cpp @@ -33,9 +33,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "lockout.h" -#include <ntqlayout.h> -#include <ntqtoolbutton.h> -#include <ntqtooltip.h> +#include <tqlayout.h> +#include <tqtoolbutton.h> +#include <tqtooltip.h> #include <dcopclient.h> #include <tdeaction.h> @@ -234,3 +234,4 @@ void Lockout::slotShowKShutDown() { void Lockout::slotShutDown() { runCommand("kshutdown --init --confirm --shutdown"); } +#include "lockout.moc" |