2014-11-28 12:44:13 +00:00
|
|
|
project(kfloppy)
|
|
|
|
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2016-04-06 12:26:19 +00:00
|
|
|
find_package(KDE4 4.18.0 REQUIRED)
|
2014-11-28 12:44:13 +00:00
|
|
|
include(KDE4Defaults)
|
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
endif()
|
|
|
|
|
2016-04-06 12:26:19 +00:00
|
|
|
if(NOT UNIX)
|
|
|
|
message(FATAL_ERROR "KFloppy is only supposed to be built on Unix platforms.")
|
|
|
|
endif(NOT UNIX)
|
|
|
|
|
2014-11-28 12:44:13 +00:00
|
|
|
set(kfloppy_SRCS main.cpp format.cpp floppy.cpp )
|
|
|
|
|
2015-09-02 02:13:50 +03:00
|
|
|
add_executable(kfloppy ${kfloppy_SRCS})
|
2014-11-28 12:44:13 +00:00
|
|
|
|
|
|
|
target_link_libraries(kfloppy ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KIO_LIBS} )
|
|
|
|
|
|
|
|
install(TARGETS kfloppy ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
install( PROGRAMS KFloppy.desktop DESTINATION ${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 ${SERVICES_INSTALL_DIR}/ServiceMenus)
|
|
|
|
|
|
|
|
kde4_install_icons( ${ICON_INSTALL_DIR} )
|