diff options
-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} ) |