Olá a todos, eu to usando o intrepid com kde 4.1, baixei do svn o plasmoid monitor de sistemas e estou tentando compilar mas estou tendo o seguinte erro,
emerson@emily:~/src/system-monitor/build$ cmake ..
CMake Error at CMakeLists.txt:10 (kde4_add_library):
Unknown CMake command "kde4_add_library".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.6)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
emerson@emily:~/src/system-monitor/build$ cd /home/emerson/src/system-monitor
emerson@emily:~/src/system-monitor$
o CMakeLists.txt é esse aqui
project(plasma-system-monitor)
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${PLASMA_INCLUDE_DIR})
# lib
set(lib_SRCS
monitoricon.cpp
applet.cpp
)
kde4_add_library(plasma_applet-system-monitor SHARED ${lib_SRCS})
target_link_libraries(plasma_applet-system-monitor ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS})
# HDD Monitor
set(hdd_SRCS
hdd.cpp
)
kde4_add_ui_files(hdd_SRCS hdd-config.ui)
kde4_add_plugin(plasma_applet_sm_hdd ${hdd_SRCS})
target_link_libraries(plasma_applet_sm_hdd ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
# Temperature Monitor
set(temparature_SRCS
temperature.cpp
)
kde4_add_ui_files(temparature_SRCS temperature-config.ui)
kde4_add_plugin(plasma_applet_sm_temperature ${temparature_SRCS})
target_link_libraries(plasma_applet_sm_temperature ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
# Network Monitor
set(net_SRCS
net.cpp
)
kde4_add_ui_files(net_SRCS net-config.ui)
kde4_add_plugin(plasma_applet_sm_net ${net_SRCS})
target_link_libraries(plasma_applet_sm_net ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
# CPU Monitor
set(cpu_SRCS
cpu.cpp
)
kde4_add_ui_files(cpu_SRCS cpu-config.ui)
kde4_add_plugin(plasma_applet_sm_cpu ${cpu_SRCS})
target_link_libraries(plasma_applet_sm_cpu ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
# Harware Info
set(hwinfo_SRCS
hwinfo.cpp
)
kde4_add_plugin(plasma_applet_sm_hwinfo ${hwinfo_SRCS})
target_link_libraries(plasma_applet_sm_hwinfo ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
# Main applet
set(system-monitor_SRCS
monitorbutton.cpp
system-monitor.cpp
)
kde4_add_plugin(plasma_applet_system-monitor ${system-monitor_SRCS})
target_link_libraries(plasma_applet_system-monitor ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
# Install
install(TARGETS
plasma_applet-system-monitor
DESTINATION ${LIB_INSTALL_DIR})
install(TARGETS
plasma_applet_sm_hdd
plasma_applet_sm_temperature
plasma_applet_sm_hwinfo
plasma_applet_sm_net
plasma_applet_sm_cpu
plasma_applet_system-monitor
DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES
plasma-applet-sm_hdd.desktop
plasma-applet-sm_temperature.desktop
plasma-applet-sm_hwinfo.desktop
plasma-applet-sm_net.desktop
plasma-applet-sm_cpu.desktop
plasma-applet-system-monitor.desktop
DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES
hdd_panel.svgz
DESTINATION ${DATA_INSTALL_DIR}/desktoptheme/default/system-monitor/)
Alguém poderia me ajudar e se não for pedir muito, me dar uma breve explicação sobre o cmake do kde, eu já compilei algumas coisas com ele mas passando os prefixos de compilação deixados pelos desenvolvedores, e neste caso eu mesmo teria que passar tais prefixos pelo que eu entendi, só que eu não sei como, desde já obrigado..