diff options
author | Slávek Banko <[email protected]> | 2021-01-25 22:08:40 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2021-01-27 18:20:12 +0100 |
commit | ded0e7fe226e064c43604d82abe4f2e1174f1e02 (patch) | |
tree | 5580848070468915527cf7bab04a84db9626cee8 | |
parent | c73c798631ef3428519213f1f223e3aec2203944 (diff) | |
download | tdetoys-ded0e7fe226e064c43604d82abe4f2e1174f1e02.tar.gz tdetoys-ded0e7fe226e064c43604d82abe4f2e1174f1e02.zip |
Generate kweather station information files during the build phase
instead of the configuration phase.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 07d616b7e20de3282bad26ac303503bf86955ffe)
-rw-r--r-- | kweather/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kweather/CMakeLists.txt b/kweather/CMakeLists.txt index 075266b..6b28670 100644 --- a/kweather/CMakeLists.txt +++ b/kweather/CMakeLists.txt @@ -51,11 +51,14 @@ if( NOT PERL_EXECUTABLE ) include( FindPerl ) endif( ) -execute_process( +add_custom_command( + OUTPUT stations.dat weather_stations.desktop COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/genstations.pl ${CMAKE_CURRENT_SOURCE_DIR}/data/nsd_cccc.txt ${CMAKE_CURRENT_SOURCE_DIR}/data/station_names.txt ${CMAKE_CURRENT_SOURCE_DIR}/weather_stations.desktop.in + DEPENDS + data/nsd_cccc.txt data/station_names.txt weather_stations.desktop.in WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) |