install targets mit cmake funktionieren nicht
-
# PROJECT project(NV_Clock) include_directories( ${CMAKE_SOURCE_DIR}/nvclock/backend ${CMAKE_SOURCE_DIR}/nvclock/nvcontrol ${CMAKE_SOURCE_DIR}/NVCL_Plasmoid ) # SEARCH LIBS find_package(KDE4 REQUIRED) include(KDE4Defaults) add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ) # SOURCES set(APPLET_SRCS nv_dimmerLayout.cpp nv_infoManager.cpp nv_coolbitsDialog.cpp nv_infoLayout.cpp nv_configDialog.cpp monitorbutton.cpp ) set(DIMMER_APPLET_SRCS nv_dimmerApplet.cpp ) set(MASTER_APPLET_SRCS nv_MasterApplet.cpp ) set(INFO_APPLET_SRCS nv_InfoApplet.cpp ) # LINKEN kde4_add_plugin(plasma_applet_NVDimmer ${APPLET_SRCS} ${DIMMER_APPLET_SRCS}) target_link_libraries(plasma_applet_NVDimmer ${KDE4_PLASMA_LIBS} backend solidcontrol) kde4_add_plugin(plasma_applet_NVInfo ${APPLET_SRCS} ${INFO_APPLET_SRCS}) target_link_libraries(plasma_applet_NVInfo ${KDE4_PLASMA_LIBS} backend solidcontrol) #kde4_add_plugin(plasma_applet_NVMaster ${APPLET_SRCS} ${MASTER_APPLET_SRCS}) #target_link_libraries(plasma_applet_NVMaster # ${KDE4_PLASMA_LIBS} backend solidcontrol) install(TARGETS plasma_applet_NVDimmer plasma_applet_NVInfo #plasma_applet_NVMaster DESTINATION ${KDE4_LIB_INSTALL_DIR} ) INSTALL(FILES plasma-applet-NVInfo.desktop plasma-applet-NVDimmer.desktop #plasma-applet-NVMaster.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
ich verstehe nicht warum das oben angegebene cmake-file nicht funktioniert. die libraries werden richtig gebaut, aber die targets NICHT installiert. allerdings werden die unten angegebenen FILES richtig installiert. nur die kde-plugins werden überhaupt nicht berücksichtigt.
das ist mein install output:
Install the project... -- Install configuration: "" -- Installing: /usr/local/share/kde4/services/plasma-applet-NVInfo.desktop -- Installing: /usr/local/share/kde4/services/plasma-applet-NVDimmer.desktop Xerces@linux-0u1s:~/devel/NV_APPLET/build> sudo make uninstall Scanning dependencies of target uninstall -- Uninstalling "/usr/local/share/kde4/services/plasma-applet-NVInfo.desktop" -- Uninstalling "/usr/local/share/kde4/services/plasma-applet-NVDimmer.desktop" Built target uninstall
kennt sich da irgendjemand besser aus als ich? ich fange langsam an cmake zu hassen.