diff options
author | gregory guy <[email protected]> | 2018-10-03 15:32:43 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-10-14 01:13:46 +0200 |
commit | 9d6905151acf632ad6be7d4294166653e355720a (patch) | |
tree | 0007744930177766201aebbaef6258a407e8a69b /src | |
parent | fad85e3bd2eda0ef08422ab28daf36149a24afa6 (diff) | |
download | ksensors-9d6905151acf632ad6be7d4294166653e355720a.tar.gz ksensors-9d6905151acf632ad6be7d4294166653e355720a.zip |
convert to cmake building system
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 63 | ||||
-rw-r--r-- | src/pics/CMakeLists.txt | 15 | ||||
-rw-r--r-- | src/sounds/CMakeLists.txt | 4 |
3 files changed, 82 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..32ff0f4 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,63 @@ +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} +) + + +##### ksensors (executable) + +tde_add_executable( ${PROJECT_NAME} AUTOMOC + + SOURCES + main.cpp ksensors.cpp aboutcfgdesign.ui cpupanel.cpp + cputimepanel.cpp generalcfg.cpp generalcfgdesign.ui + hdsensorslist.cpp i8ksensorslist.cpp infopanels.cpp + ksensorscfg.cpp ksensorssplash.cpp lmsensor.cpp + lmsensordockpanel.cpp lmsensorpanel.cpp lmsensorsalarms.cpp + lmsensorscfg.cpp lmsensorscfgdesign.ui lmsensorschip.cpp + lmsensors.cpp lmsensorsdock.cpp lmsensorswidget.cpp + palettecfg.cpp palettecfgdesign.ui panel.cpp panelsgroup.cpp + processexec.cpp procinfo.cpp qbarmeter.cpp qdialarc.cpp + qlcdraw.cpp qlcdstring.cpp rampanel.cpp sensor.cpp + sensorslist.cpp systemcfg.cpp systemcfgdesign.ui + uptimepanel.cpp + LINK + tdeui-shared + tdecore-shared + sensors + m + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES ksensorsui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES ${PROJECT_NAME}.desktop + DESTINATION ${AUTOSTART_INSTALL_DIR} +) + +install( + FILES ${PROJECT_NAME}.desktop + DESTINATION ${APPS_INSTALL_DIR}/System +) + + +##### other directories + +add_subdirectory( pics ) +add_subdirectory( sounds ) diff --git a/src/pics/CMakeLists.txt b/src/pics/CMakeLists.txt new file mode 100644 index 0000000..fc8da16 --- /dev/null +++ b/src/pics/CMakeLists.txt @@ -0,0 +1,15 @@ +install( + + FILES + battery.png earth.png motherboard.png battery18x18.png + harddisk.png thermometer.png computers.png + ksensorsbackground.png thermometer18x18.png cooler.png + ksensorsdocked.png cooler18x18.png ksensorssplash.png + + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics +) + +tde_install_icons( lo32-app-ksensors.png lo16-app-ksensors.png + hi32-app-ksensors.png hi16-app-ksensors.png + ${PROJECT_NAME} +) diff --git a/src/sounds/CMakeLists.txt b/src/sounds/CMakeLists.txt new file mode 100644 index 0000000..787739e --- /dev/null +++ b/src/sounds/CMakeLists.txt @@ -0,0 +1,4 @@ +install( + FILES ksensors_alert.wav + DESTINATION ${SOUND_INSTALL_DIR} +) |