kde-playground/kimageviewer/CMakeLists.txt
Ivailo Monev a3b72a8224 kimageviewer: fix build
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2020-08-20 16:14:51 +03:00

51 lines
966 B
CMake

project(KImageViewer)
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
include_directories(${KDE4_INCLUDES})
# application
set(kimageviewer_SRCS
main.cpp
kimagewidget.cpp
)
add_executable(kimageviewer ${kimageviewer_SRCS})
target_link_libraries(kimageviewer
${KDE4_KDECORE_LIBS}
${KDE4_KPARTS_LIBS}
${KDE4_KDEUI_LIBS}
)
## part
set(kimageviewerpart_SRCS
kimagepart.cpp
kimagewidget.cpp
)
kde4_add_plugin(kimageviewerpart ${kimageviewerpart_SRCS})
target_link_libraries(kimageviewerpart
${KDE4_KDECORE_LIBS}
${KDE4_KPARTS_LIBS}
${KDE4_KDEUI_LIBS}
)
## install everything
install(
TARGETS kimageviewer
DESTINATION ${KDE4_BIN_INSTALL_DIR}
)
install(
TARGETS kimageviewerpart
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
)
install(
PROGRAMS kimageviewer.desktop
DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR}
)
install(
PROGRAMS kimageviewerpart.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
)