Commit 1542f05b authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Integrate ktouchpadenalber in the build system

parent e640efe3
......@@ -162,6 +162,7 @@ if(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop")
if (Q_WS_X11)
macro_optional_add_subdirectory(kinfocenter)
macro_optional_add_subdirectory(ktouchpadenabler)
endif (Q_WS_X11)
if(NOT WIN32)
......
project(ktouchpadenabler)
find_package(KDE4 REQUIRED)
find_package(X11 REQUIRED)
include(KDE4Defaults)
macro_log_feature(X11_Xinput_FOUND "libXinput" "X11 input library" "http://xorg.freedesktop.org" TRUE "" "Needed for ktouchpadenabler")
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${QT4_INCLUDES} ${X11_INCLUDE_DIR})
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
if (X11_Xinput_FOUND)
include_directories (${X11_INCLUDE_DIR})
set(kded_ktouchpadenabler_SRCS
ktouchpadenabler_daemon.cpp
)
set(kded_ktouchpadenabler_SRCS
ktouchpadenabler_daemon.cpp
)
kde4_add_kcfg_files(kded_ktouchpadenabler_SRCS settings.kcfgc )
kde4_add_kcfg_files(kded_ktouchpadenabler_SRCS settings.kcfgc )
kde4_add_plugin(kded_ktouchpadenabler
${kded_ktouchpadenabler_SRCS}
)
kde4_add_plugin(kded_ktouchpadenabler
${kded_ktouchpadenabler_SRCS}
)
target_link_libraries(kded_ktouchpadenabler
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${X11_X11_LIB}
${X11_Xinput_LIB}
)
target_link_libraries(kded_ktouchpadenabler
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${X11_X11_LIB}
${X11_Xinput_LIB}
)
install(TARGETS kded_ktouchpadenabler DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES ktouchpadenabler.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded)
install(TARGETS kded_ktouchpadenabler DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES ktouchpadenabler.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded)
endif ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment