summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2018-10-12 20:52:21 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-10-16 01:26:17 +0200
commitbc97f48e2e9ecbbb32e0038e6ebe30cdab3980ff (patch)
tree9426727a1d2dde5a323634e37a1391236024b726 /src/CMakeLists.txt
parent3afa3c29cec233621bb337a96d56f2401549e7f7 (diff)
downloadknutclient-bc97f48e2e9ecbbb32e0038e6ebe30cdab3980ff.tar.gz
knutclient-bc97f48e2e9ecbbb32e0038e6ebe30cdab3980ff.zip
conversion to cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'src/CMakeLists.txt')
-rwxr-xr-xsrc/CMakeLists.txt61
1 files changed, 61 insertions, 0 deletions
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
+)