mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 10:52:53 +00:00

TODO from https://github.com/fluxer/katana/issues/7. kget and libktorrent cannot be build separately because libktorrent depends on boost (or miniboost which is bundled) and kget depends on libktorrent. syndication include paths were adjusted to build from the top-level directory since it was used not only by akregator, that is no longer the case and it should probably be moved to akregator sub-directory but that will be decided in the future. Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
30 lines
976 B
CMake
30 lines
976 B
CMake
project(kfloppy)
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
find_package(KDE4 4.19.0 REQUIRED)
|
|
include(KDE4Defaults)
|
|
include_directories(${KDE4_INCLUDES})
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
endif()
|
|
|
|
if(NOT UNIX)
|
|
message(FATAL_ERROR "KFloppy is only supposed to be built on Unix platforms.")
|
|
endif(NOT UNIX)
|
|
|
|
set(kfloppy_SRCS main.cpp format.cpp floppy.cpp )
|
|
|
|
add_executable(kfloppy ${kfloppy_SRCS})
|
|
|
|
target_link_libraries(kfloppy ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KIO_LIBS} )
|
|
|
|
install(TARGETS kfloppy ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
########### install files ###############
|
|
|
|
install(PROGRAMS KFloppy.desktop DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR})
|
|
|
|
# The mimetypes used in this servicemenu (e.g. floppy_unmounted) don't exist anymore.
|
|
# This needs to be done differently.
|
|
#install( FILES floppy_format.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR}/ServiceMenus)
|
|
|
|
kde4_install_icons(${KDE4_ICON_INSTALL_DIR})
|