2015-01-01 01:22:10 +00:00
|
|
|
|
|
|
|
project(ksaneplugin)
|
|
|
|
|
|
|
|
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules )
|
|
|
|
|
|
|
|
find_package(KDE4 REQUIRED)
|
|
|
|
include(KDE4Defaults)
|
|
|
|
include(MacroLibrary)
|
|
|
|
include(MacroOptionalAddSubdirectory)
|
|
|
|
|
2015-01-01 13:43:15 +00:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/libksane/libksane)
|
2015-01-01 01:22:10 +00:00
|
|
|
add_definitions (${QT_DEFINITIONS} ${QT_QTDBUS_DEFINITIONS} ${KDE4_DEFINITIONS} -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
|
|
|
|
include_directories (${QDBUS_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
|
|
|
|
|
|
|
|
########### target ###############
|
|
|
|
kde4_add_plugin(ksaneplugin sanedialog.cpp)
|
|
|
|
|
2015-01-01 13:43:15 +00:00
|
|
|
target_link_libraries(ksaneplugin ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ksane)
|
2015-01-01 01:22:10 +00:00
|
|
|
|
|
|
|
install(TARGETS ksaneplugin DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES ksane_scan_service.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
|