Generate kweather station information files during the build phase

instead of the configuration phase.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/11/head
Slávek Banko 3 years ago
parent 9575c4d686
commit 07d616b7e2
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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}
)

Loading…
Cancel
Save