mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
34 lines
635 B
CMake
34 lines
635 B
CMake
project(khash)
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
include(FeatureSummary)
|
|
|
|
find_package(KDELibs4 4.23.0 REQUIRED)
|
|
|
|
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
|
|
KDE4::kdeui
|
|
KDE4::kfile
|
|
${QT_QTNETWORK_LIBRARY}
|
|
)
|
|
|
|
install(
|
|
TARGETS khash
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
)
|
|
|
|
########### install files ###############
|
|
|
|
install(
|
|
FILES khash_checksum.desktop DESTINATION
|
|
${KDE4_SERVICES_INSTALL_DIR}/ServiceMenus
|
|
)
|