diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-01-30 11:42:53 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-02-02 15:36:40 +0100 |
commit | 4f89efe3465eff6c67fa2674ea5f98452b34757a (patch) | |
tree | 0e2f4d1e9c2a64dd1e000adac52c2e196ff83dee /kshutdownlockout | |
parent | 32a4ad7b1211ceabc5da467c01aec379b26e5eea (diff) | |
download | kshutdown-4f89efe3465eff6c67fa2674ea5f98452b34757a.tar.gz kshutdown-4f89efe3465eff6c67fa2674ea5f98452b34757a.zip |
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
(cherry picked from commit d4155deb8d425efa01e2d2e9332ecfe4f12ccb9c)
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" |