From 5e86bb5a6f71c36241ad9174771e40b7460ba032 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 28 Dec 2019 11:08:59 +0100 Subject: [PATCH] Make the contacts examples slightly more standalone Instead of symlinking the scripts directory in the grantlee sources to the source directory of this example, directly invoke the extract_strings_linguist.py script with its relative path for the example source directory. The linguist_ts target still depends on something outside of it, however now it is possible to build the contacts example on its own, even when it is copied as standalone out of the grantlee sources. --- examples/contacts/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/contacts/CMakeLists.txt b/examples/contacts/CMakeLists.txt index 093deb6d..7e62a4e0 100644 --- a/examples/contacts/CMakeLists.txt +++ b/examples/contacts/CMakeLists.txt @@ -39,9 +39,7 @@ else() set(lrelease_exe Qt5::lrelease) endif() -execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${PROJECT_SOURCE_DIR}/../../scripts" "${PROJECT_SOURCE_DIR}/scripts") - -set( LINGUIST_TS_ARGS COMMAND "${CMAKE_SOURCE_DIR}/scripts/extract_strings_linguist.py" +set( LINGUIST_TS_ARGS COMMAND "${CMAKE_SOURCE_DIR}/../../scripts/extract_strings_linguist.py" "${CMAKE_SOURCE_DIR}/themes/linguist/bashful/*.html" "${CMAKE_SOURCE_DIR}/themes/linguist/sneezy/*.html" "${CMAKE_SOURCE_DIR}/themes/linguist/sleepy/*.html"