2015-12-24 06:41:05 -05:00
|
|
|
set (SAMPLE_FILES
|
2019-05-30 22:10:46 -04:00
|
|
|
FT4/000000_000002.wav
|
2021-07-28 10:14:31 -04:00
|
|
|
FT8/210703_133430.wav
|
2021-02-14 15:05:21 -05:00
|
|
|
FST4+FST4W/210115_0058.wav
|
2021-02-16 12:04:48 -05:00
|
|
|
FST4+FST4W/201230_0300.wav
|
2021-02-14 15:05:21 -05:00
|
|
|
MSK144/181211_120500.wav
|
|
|
|
MSK144/181211_120800.wav
|
2016-10-20 17:20:26 -04:00
|
|
|
ISCAT/ISCAT-A/VK7MO_110401_235515.wav
|
|
|
|
ISCAT/ISCAT-B/K0AWU_100714_115000.wav
|
|
|
|
JT4/JT4A/DF2ZC_070926_040700.WAV
|
|
|
|
JT4/JT4F/OK1KIR_141105_175700.WAV
|
|
|
|
JT65/JT65B/DL7UAE_040308_002400.wav
|
2020-05-10 05:54:56 -04:00
|
|
|
JT65/JT65B/000000_0001.wav
|
|
|
|
JT65/JT65B/000000_0002.wav
|
|
|
|
JT65/JT65B/000000_0003.wav
|
|
|
|
JT65/JT65B/000000_0004.wav
|
|
|
|
JT65/JT65B/000000_0005.wav
|
|
|
|
JT65/JT65B/000000_0006.wav
|
|
|
|
JT65/JT65B/000000_0007.wav
|
2015-12-24 06:41:05 -05:00
|
|
|
JT9/130418_1742.wav
|
2019-02-24 22:07:51 -05:00
|
|
|
MSK144/181211_120500.wav
|
|
|
|
MSK144/181211_120800.wav
|
2016-10-20 17:20:26 -04:00
|
|
|
WSPR/150426_0918.wav
|
2021-02-03 12:37:27 -05:00
|
|
|
Q65/30A_Ionoscatter_6m/201203_022700.wav
|
|
|
|
Q65/30A_Ionoscatter_6m/201203_022800.wav
|
|
|
|
Q65/30A_Ionoscatter_6m/201203_022900.wav
|
|
|
|
Q65/30A_Ionoscatter_6m/201203_024000.wav
|
2021-02-03 12:30:27 -05:00
|
|
|
Q65/60A_EME_6m/210106_1621.wav
|
|
|
|
Q65/60B_1296_Troposcatter/210109_0007.wav
|
|
|
|
Q65/60B_1296_Troposcatter/210109_0147.wav
|
|
|
|
Q65/60B_1296_Troposcatter/210109_0151.wav
|
|
|
|
Q65/60D_EME_10GHz/201212_1838.wav
|
|
|
|
Q65/120D_Rainscatter_10_GHz/210117_0920.wav
|
|
|
|
Q65/120E_Ionoscatter_6m/210130_1438.wav
|
|
|
|
Q65/120E_Ionoscatter_6m/210130_1442.wav
|
|
|
|
Q65/300A_Optical_Scatter/201210_0505.wav
|
2015-12-24 06:41:05 -05:00
|
|
|
)
|
|
|
|
|
2021-02-03 12:39:32 -05:00
|
|
|
set (contents_file_name contents_${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.json)
|
2015-12-24 15:46:26 -05:00
|
|
|
set (contents_file ${CMAKE_CURRENT_BINARY_DIR}/${contents_file_name})
|
|
|
|
set (web_tree ${CMAKE_CURRENT_BINARY_DIR}/web)
|
|
|
|
set_source_files_properties (${contents_file} PROPERTIES GENERATED ON)
|
|
|
|
|
|
|
|
add_custom_command (
|
|
|
|
OUTPUT ${contents_file}
|
|
|
|
COMMAND ${CMAKE_COMMAND} ARGS -Dcontents_file=${contents_file} -DFILES="${SAMPLE_FILES}" -DDEST=${CMAKE_CURRENT_BINARY_DIR} -P make_contents.cmake
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
DEPENDS ${SAMPLE_FILES} make_contents.cmake
|
|
|
|
)
|
2015-12-24 06:41:05 -05:00
|
|
|
|
|
|
|
find_program (RSYNC_EXECUTABLE rsync)
|
2015-12-24 15:46:26 -05:00
|
|
|
add_custom_command (
|
|
|
|
OUTPUT upload.timestamp
|
|
|
|
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${contents_file} ${web_tree}/samples/${contents_file_name}
|
|
|
|
COMMAND ${RSYNC_EXECUTABLE} ARGS -avz --progress ${CMAKE_CURRENT_BINARY_DIR}/web/samples ${PROJECT_SAMPLES_UPLOAD_DEST}
|
|
|
|
COMMAND ${CMAKE_COMMAND} ARGS -E touch upload.timestamp
|
|
|
|
DEPENDS ${contents_file}
|
|
|
|
COMMENT "Uploading WSJT-X samples to web server"
|
|
|
|
)
|
|
|
|
add_custom_target (upload-samples DEPENDS upload.timestamp)
|