2023-05-29 06:49:10 +03:00
|
|
|
project(khash)
|
|
|
|
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
include(FeatureSummary)
|
|
|
|
|
2023-06-20 04:59:24 +03:00
|
|
|
find_package(KDELibs4 4.23.0 REQUIRED)
|
|
|
|
|
2023-05-29 06:49:10 +03:00
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(khash_SRCS
|
|
|
|
khash.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(khash ${khash_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(khash
|
2023-06-20 04:59:24 +03:00
|
|
|
KDE4::kdeui
|
|
|
|
KDE4::kfile
|
2023-05-29 06:49:10 +03:00
|
|
|
${QT_QTNETWORK_LIBRARY}
|
|
|
|
)
|
|
|
|
|
2023-08-09 20:56:08 +03:00
|
|
|
install(
|
|
|
|
TARGETS khash
|
|
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
|
|
)
|
2023-05-29 06:49:10 +03:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
install(
|
|
|
|
FILES khash_checksum.desktop DESTINATION
|
|
|
|
${KDE4_SERVICES_INSTALL_DIR}/ServiceMenus
|
|
|
|
)
|