|
|
@ -51,11 +51,14 @@ if( NOT PERL_EXECUTABLE )
|
|
|
|
include( FindPerl )
|
|
|
|
include( FindPerl )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
execute_process(
|
|
|
|
add_custom_command(
|
|
|
|
|
|
|
|
OUTPUT stations.dat weather_stations.desktop
|
|
|
|
COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/genstations.pl
|
|
|
|
COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/genstations.pl
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/data/nsd_cccc.txt
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/data/nsd_cccc.txt
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/data/station_names.txt
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/data/station_names.txt
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/weather_stations.desktop.in
|
|
|
|
${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}
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|