Only try to install translations if WITHOUT_TRANSLATIONS is unset
parent
3874ec8e98
commit
4f6d7477a7
|
@ -38,8 +38,7 @@ target_link_libraries(whyblocked
|
||||||
install(TARGETS whyblocked DESTINATION ${CMAKE_INSTALL_BINDIR})
|
install(TARGETS whyblocked DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
|
||||||
if(NOT WITHOUT_GUI)
|
if(NOT WITHOUT_GUI)
|
||||||
add_executable(whyblocked-gui src/interface_qt.cpp src/whyblocked.cpp
|
add_executable(whyblocked-gui src/interface_qt.cpp src/whyblocked.cpp)
|
||||||
${QM_FILES})
|
|
||||||
target_link_libraries(whyblocked-gui
|
target_link_libraries(whyblocked-gui
|
||||||
${LIBXDG_BASEDIR_LIBRARIES} vsqlitepp stdc++fs
|
${LIBXDG_BASEDIR_LIBRARIES} vsqlitepp stdc++fs
|
||||||
Qt5::Widgets)
|
Qt5::Widgets)
|
||||||
|
@ -49,8 +48,6 @@ if(NOT WITHOUT_GUI)
|
||||||
${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
||||||
install(FILES de.tastytea.Whyblocked.svg DESTINATION
|
install(FILES de.tastytea.Whyblocked.svg DESTINATION
|
||||||
${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps)
|
${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps)
|
||||||
install(FILES ${QM_FILES} DESTINATION
|
|
||||||
${CMAKE_INSTALL_DATAROOTDIR}/qt5/translations)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT WITHOUT_TRANSLATIONS)
|
if(NOT WITHOUT_TRANSLATIONS)
|
||||||
|
|
|
@ -8,3 +8,5 @@ qt5_add_translation(QM_FILES ${TS_FILES})
|
||||||
add_custom_target(translations ALL DEPENDS ${QM_FILES})
|
add_custom_target(translations ALL DEPENDS ${QM_FILES})
|
||||||
add_dependencies(${CMAKE_PROJECT_NAME} translations)
|
add_dependencies(${CMAKE_PROJECT_NAME} translations)
|
||||||
add_dependencies(${CMAKE_PROJECT_NAME}-gui translations)
|
add_dependencies(${CMAKE_PROJECT_NAME}-gui translations)
|
||||||
|
install(FILES ${QM_FILES} DESTINATION
|
||||||
|
${CMAKE_INSTALL_DATAROOTDIR}/qt5/translations)
|
||||||
|
|
Loading…
Reference in New Issue