From cb8fbdaad8b45286205430d724f7ad8101459e26 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Fri, 12 Oct 2018 20:52:21 +0200 Subject: conversion to cmake building system Signed-off-by: gregory guy (cherry picked from commit bc97f48e2e9ecbbb32e0038e6ebe30cdab3980ff) --- src/CMakeLists.txt | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100755 src/CMakeLists.txt (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100755 index 0000000..c2d88ab --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,61 @@ +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} +) + + +##### knutclient (executable) + +tde_add_executable( ${PROJECT_NAME} AUTOMOC + + SOURCES + main.cpp + knutclient.cpp + knutmainwindow.cpp + knutprefdlg.cpp + knutnewupsdlg.cpp + knutupsdata.cpp + knutvardata.cpp + knutnet.cpp + knutfrontpanel.cpp + knutpanelmeter.cpp + knutdock.cpp + knutprintupsvar.cpp + knutinstcomms.cpp + knutrwvar.cpp + knutanalog.cpp + knutmessagemanager.cpp + knutmessage.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### icons + +tde_install_icons( ) + + +##### other data + +install( + FILES knutclientui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES ${PROJECT_NAME}.desktop + DESTINATION ${APPS_INSTALL_DIR}/Utilities +) -- cgit v1.2.1