Commit af2bf528 authored by David Faure's avatar David Faure
Browse files

Reorganize kfind sources after move to own repo

parent 8cb82291
......@@ -16,7 +16,7 @@ include(ECMAddAppIcon)
set(KFIND_VERSION "2.0.0")
ecm_setup_version(${KFIND_VERSION} VARIABLE_PREFIX KFIND
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kfind_version.h"
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/kfind_version.h"
)
# Build dependencies
......@@ -24,33 +24,8 @@ find_package(KF5 REQUIRED COMPONENTS KDELibs4Support Archive DocTools)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
set(kfind_SRCS main.cpp
kfinddlg.cpp
kftabdlg.cpp
kquery.cpp
kdatecombo.cpp
kfindtreeview.cpp)
file(GLOB ICONS_SRCS "icons/*-apps-kfind.png")
ecm_add_app_icon(kfind_SRCS ICONS ${ICONS_SRCS})
add_executable(kfind ${kfind_SRCS})
target_link_libraries(kfind
KF5::Archive
KF5::KDELibs4Support
)
install(TARGETS kfind ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
install(PROGRAMS org.kde.kfind.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES org.kde.kfind.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
add_subdirectory(src)
add_subdirectory(icons)
add_subdirectory(docs)
add_subdirectory(doc)
if("${CMAKE_SOURCE_DIR}" STREQUAL "${Kfind_SOURCE_DIR}")
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
set(kfind_SRCS main.cpp
kfinddlg.cpp
kftabdlg.cpp
kquery.cpp
kdatecombo.cpp
kfindtreeview.cpp)
file(GLOB ICONS_SRCS "../icons/*-apps-kfind.png")
ecm_add_app_icon(kfind_SRCS ICONS ${ICONS_SRCS})
add_executable(kfind ${kfind_SRCS})
target_link_libraries(kfind
KF5::Archive
KF5::KDELibs4Support
)
install(TARGETS kfind ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
install(PROGRAMS org.kde.kfind.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES org.kde.kfind.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment