Renamed whyblocked-gui -> whyblocked

develop
tastytea 2019-01-20 23:46:41 +01:00
parent fac5bd700a
commit 58a79b0681
No known key found for this signature in database
GPG Key ID: CFC39497F1B26E07
2 changed files with 21 additions and 14 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.2) cmake_minimum_required (VERSION 3.2)
project (whyblocked project (whyblocked
VERSION 0.14.6 VERSION 0.15
LANGUAGES CXX LANGUAGES CXX
) )
@ -41,29 +41,36 @@ configure_file (
"${PROJECT_BINARY_DIR}/version.hpp" "${PROJECT_BINARY_DIR}/version.hpp"
) )
add_executable(whyblocked-gui add_executable(${CMAKE_PROJECT_NAME}
src/qt/main.cpp src/qt/mainwindow.cpp src/qt/dialog_add.cpp src/qt/main.cpp src/qt/mainwindow.cpp src/qt/dialog_add.cpp
src/whyblocked.cpp src/xdgcfg.cpp) src/whyblocked.cpp src/xdgcfg.cpp)
target_link_libraries(whyblocked-gui target_link_libraries(${CMAKE_PROJECT_NAME}
${LIBXDG_BASEDIR_LIBRARIES} vsqlitepp Qt5::Widgets ${LIBXDG_BASEDIR_LIBRARIES} vsqlitepp Qt5::Widgets
${LIBCONFIG_LIBRARIES} stdc++fs) ${LIBCONFIG_LIBRARIES} stdc++fs)
set(WITH_MAN "YES") set(WITH_MAN "YES")
if(WITH_MAN) if(WITH_MAN)
add_custom_command(TARGET whyblocked-gui POST_BUILD add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}"
COMMAND ${CMAKE_SOURCE_DIR}/build_manpage.sh COMMAND ${CMAKE_SOURCE_DIR}/build_manpage.sh
ARGS ${CMAKE_VERSION}) ARGS ${CMAKE_VERSION})
endif() endif()
add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}"
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_PROJECT_NAME} whyblocked-gui)
install(TARGETS whyblocked-gui DESTINATION ${CMAKE_INSTALL_BINDIR}) install(TARGETS ${CMAKE_PROJECT_NAME}
install(FILES de.tastytea.Whyblocked.desktop DESTINATION DESTINATION ${CMAKE_INSTALL_BINDIR})
${CMAKE_INSTALL_DATAROOTDIR}/applications) install(FILES "${PROJECT_BINARY_DIR}/whyblocked-gui"
install(FILES de.tastytea.Whyblocked.appdata.xml DESTINATION DESTINATION "${CMAKE_INSTALL_BINDIR}")
${CMAKE_INSTALL_DATAROOTDIR}/metainfo) install(FILES de.tastytea.Whyblocked.desktop
install(FILES de.tastytea.Whyblocked.svg DESTINATION DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps) install(FILES de.tastytea.Whyblocked.appdata.xml
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo)
install(FILES de.tastytea.Whyblocked.svg
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps)
if(WITH_MAN) if(WITH_MAN)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/whyblocked.1 DESTINATION install(FILES ${CMAKE_CURRENT_BINARY_DIR}/whyblocked.1
${CMAKE_INSTALL_MANDIR}/man1) DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
endif() endif()
set(WITH_TRANSLATIONS, "YES") set(WITH_TRANSLATIONS, "YES")

View File

@ -5,7 +5,7 @@ Name=Whyblocked
Comment=Reminds you why you blocked someone Comment=Reminds you why you blocked someone
Comment[de]=Erinnert dich, warum du jemanden blockiertest Comment[de]=Erinnert dich, warum du jemanden blockiertest
Icon=de.tastytea.Whyblocked Icon=de.tastytea.Whyblocked
Exec=whyblocked-gui Exec=whyblocked
Terminal=false Terminal=false
Categories=Utility; Categories=Utility;
Keywords=blocklist;social-network; Keywords=blocklist;social-network;