Lines 36-46
Link Here
|
36 |
string( TIMESTAMP KICAD_CONFIG_TIMESTAMP "%Y-%m-%d" ) |
36 |
string( TIMESTAMP KICAD_CONFIG_TIMESTAMP "%Y-%m-%d" ) |
37 |
|
37 |
|
38 |
# Configure the KiCad appdata file |
38 |
# Configure the KiCad appdata file |
39 |
configure_file( ${PROJECT_SOURCE_DIR}/resources/linux/appdata/kicad.appdata.xml.in |
39 |
configure_file( ${PROJECT_SOURCE_DIR}/resources/linux/metainfo/kicad.appdata.xml.in |
40 |
${PROJECT_BINARY_DIR}/resources/linux/appdata/kicad.appdata.xml |
40 |
${PROJECT_BINARY_DIR}/resources/linux/metainfo/kicad.appdata.xml |
41 |
@ONLY ) |
41 |
@ONLY ) |
42 |
|
42 |
|
43 |
# Ensure the file was configured successfully |
43 |
# Ensure the file was configured successfully |
44 |
if( NOT EXISTS ${PROJECT_BINARY_DIR}/resources/linux/appdata/kicad.appdata.xml ) |
44 |
if( NOT EXISTS ${PROJECT_BINARY_DIR}/resources/linux/metainfo/kicad.appdata.xml ) |
45 |
message( FATAL_ERROR "Configuration failed to write file kicad.appdata.xml." ) |
45 |
message( FATAL_ERROR "Configuration failed to write file kicad.appdata.xml." ) |
46 |
endif() |
46 |
endif() |