2008-05-17 19:24:22 +00:00
|
|
|
# Generate a static library target named "bitmaps"
|
|
|
|
# (with filename libbitmaps.a on Linux)
|
|
|
|
|
2008-07-12 12:07:32 +00:00
|
|
|
# Copy the *.xpm files to ${XPM_CPP_PATH}/*.cpp, on change only.
|
2008-05-17 19:24:22 +00:00
|
|
|
# Compile those *.cpp files and put them into the library, then done.
|
|
|
|
|
2011-08-29 03:04:59 +00:00
|
|
|
# bitmap file names should be all lowercase and basename thereof should also
|
|
|
|
# be a valid C++ identifier name. This means no leading number, or embedded - or +
|
2008-09-09 16:51:47 +00:00
|
|
|
|
|
|
|
set(BITMAP_SRCS
|
2011-08-28 20:51:45 +00:00
|
|
|
add_arc.xpm
|
|
|
|
add_bus2bus.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
add_bus.xpm
|
2011-08-28 20:51:45 +00:00
|
|
|
add_circle.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
add_component.xpm
|
|
|
|
add_corner.xpm
|
|
|
|
add_dashed_line.xpm
|
2010-01-18 12:37:53 +00:00
|
|
|
add_dimension.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
add_entry.xpm
|
|
|
|
add_glabel.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
add_hierarchical_label.xpm
|
|
|
|
add_hierar_pin.xpm
|
|
|
|
add_hierar_subsheet.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
add_junction.xpm
|
|
|
|
add_line2bus.xpm
|
|
|
|
add_line_label.xpm
|
|
|
|
add_line.xpm
|
|
|
|
add_mires.xpm
|
|
|
|
add_polygon.xpm
|
|
|
|
add_power.xpm
|
|
|
|
add_rectangle.xpm
|
|
|
|
add_text.xpm
|
|
|
|
add_tracks.xpm
|
|
|
|
add_zone_cutout.xpm
|
|
|
|
add_zone.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
anchor.xpm
|
|
|
|
annotate_down_right.xpm
|
|
|
|
annotate_right_down.xpm
|
|
|
|
annotate.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
apply.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
auto_associe.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
auto_delete_track.xpm
|
|
|
|
auto_track_width.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
axis3d_back.xpm
|
|
|
|
axis3d_bottom.xpm
|
|
|
|
axis3d_front.xpm
|
|
|
|
axis3d_left.xpm
|
|
|
|
axis3d_right.xpm
|
|
|
|
axis3d_top.xpm
|
|
|
|
axis3d.xpm
|
2011-09-13 19:37:25 +00:00
|
|
|
bom.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
book.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
break_bus.xpm
|
|
|
|
break_line.xpm
|
|
|
|
browse_files.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
cancel_tool.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
cancel.xpm
|
2011-03-29 10:43:08 +00:00
|
|
|
create_cmp_file.xpm
|
2010-03-07 17:51:10 +00:00
|
|
|
checked_ok.xpm
|
2008-12-12 21:30:07 +00:00
|
|
|
component_select_unit.xpm
|
|
|
|
component_select_alternate_shape.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
config.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
copyblock.xpm
|
|
|
|
copycomponent.xmp
|
|
|
|
copy_button.xpm
|
2009-09-17 17:48:40 +00:00
|
|
|
copper_layers_setup.cpp
|
2011-08-29 03:04:59 +00:00
|
|
|
cursor_shape.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
cursor.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
cut_button.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
cvpcb.xpm
|
|
|
|
dashline.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
datasheet.xpm
|
|
|
|
delete_body.xpm
|
|
|
|
delete_arc.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
delete_association.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
delete_bus.xpm
|
|
|
|
delete_circle.xpm
|
|
|
|
delete_connection.xpm
|
|
|
|
delete_cotation.xpm
|
|
|
|
delete_field.xpm
|
|
|
|
delete_glabel.xpm
|
|
|
|
delete_line.xpm
|
|
|
|
delete_module.xpm
|
|
|
|
delete_net.xpm
|
|
|
|
delete_node.xpm
|
|
|
|
delete_pad.xpm
|
|
|
|
delete_pinsheet.xpm
|
|
|
|
delete_pin.xpm
|
|
|
|
delete_polygon.xpm
|
|
|
|
delete_rectangle.xpm
|
|
|
|
delete_segment.xpm
|
|
|
|
delete_sheet.xpm
|
|
|
|
delete_text.xpm
|
|
|
|
delete_track.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
delete.xpm
|
|
|
|
directory.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
display_options.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
down.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
drag_module.xpm
|
|
|
|
drag_outline_segment.xpm
|
|
|
|
drag_pad.xpm
|
|
|
|
drag_segment_withslope.xpm
|
|
|
|
drag_track_segment.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
drc_off.xpm
|
|
|
|
drc.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
edges_sketch.xpm
|
|
|
|
edit_comp_footprint.xpm
|
|
|
|
edit_component.xpm
|
|
|
|
edit_comp_ref.xpm
|
|
|
|
edit_comp_value.xpm
|
|
|
|
edit_module.xpm
|
|
|
|
editor.xpm
|
|
|
|
edit_part.xpm
|
|
|
|
edit_sheet.xpm
|
|
|
|
edit_text.xpm
|
|
|
|
edit.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
eeschema.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
enter_sheet.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
ercerr.xpm
|
2011-09-11 11:38:01 +00:00
|
|
|
erc_green.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
ercwarn.xpm
|
|
|
|
erc.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
exit.xpm
|
2011-03-29 10:43:08 +00:00
|
|
|
export_footprint_names.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
export_module.xpm
|
|
|
|
export_options_pad.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
export.xpm
|
2010-01-20 12:43:05 +00:00
|
|
|
fabrication.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
file_footprint.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
fill_zone.xpm
|
|
|
|
find_xpm.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
flag.xpm
|
|
|
|
fonts.xpmr
|
|
|
|
footprint_text.xpm
|
2010-12-15 20:15:24 +00:00
|
|
|
gbr_select_mode0.xpm
|
|
|
|
gbr_select_mode1.xpm
|
|
|
|
gbr_select_mode2.xpm
|
2011-03-19 20:39:18 +00:00
|
|
|
gerber_file.xpm
|
2011-03-23 15:18:44 +00:00
|
|
|
gerber_recent_files.xpm
|
2011-03-19 20:39:18 +00:00
|
|
|
gerbview_drill_file.xpm
|
|
|
|
gerbview_clear_layers.xpm
|
2011-03-20 12:33:28 +00:00
|
|
|
gerber_open_dcode_file.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
general_deletions.xpm
|
|
|
|
general_ratsnet.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
glabel2label.xpm
|
|
|
|
glabel2text.xpm
|
|
|
|
gl_change.xpm
|
|
|
|
global_options_pad.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
green.xpm
|
|
|
|
grid_select.xpm
|
2010-07-13 10:42:32 +00:00
|
|
|
grid_select_axis.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
grid.xpm
|
|
|
|
hammer.xpm
|
|
|
|
help.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
hidden_pin.xpm
|
|
|
|
hierarchy_cursor.xpm
|
|
|
|
hierarchy_nav.xpm
|
2010-01-18 12:37:53 +00:00
|
|
|
hotkeys.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
icon_3d.xpm
|
|
|
|
icon_cvpcb_small.xpm
|
|
|
|
icon_cvpcb.xpm
|
|
|
|
icon_eeschema.xpm
|
|
|
|
icon_gerbview_small.xpm
|
|
|
|
icon_gerbview.xpm
|
|
|
|
icon_kicad.xpm
|
|
|
|
icon_modedit.xpm
|
|
|
|
icon_pcbnew.xpm
|
2011-09-10 17:48:35 +00:00
|
|
|
icon_pcbcalculator.xpm
|
|
|
|
icon_bitmap2component.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
icon_txt.xpm
|
|
|
|
import3d.xpm
|
2011-08-31 14:59:20 +00:00
|
|
|
image.xpm
|
2010-10-30 10:03:41 +00:00
|
|
|
import_cmp_from_lib.xpm
|
2011-03-29 10:43:08 +00:00
|
|
|
import_footprint_names.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
import_hierarchical_label.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
import_module.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
import.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
info.xpm
|
|
|
|
insert_module_board.xpm
|
|
|
|
invert_module.xpm
|
2009-06-19 20:13:22 +00:00
|
|
|
invisible_text.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
jigsaw.xpm
|
|
|
|
kicad_icon_small.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
label2glabel.xpm
|
|
|
|
label2text.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
label.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
lang_catalan.xpm
|
|
|
|
lang_chinese.xpm
|
|
|
|
lang_cs.xpm
|
|
|
|
lang_default.xpm
|
|
|
|
lang_de.xpm
|
|
|
|
lang_en.xpm
|
|
|
|
lang_es.xpm
|
|
|
|
lang_fr.xpm
|
|
|
|
lang_fi.xpm
|
|
|
|
lang_gr.xpm
|
|
|
|
lang_hu.xpm
|
|
|
|
lang_it.xpm
|
|
|
|
lang_jp.xpm
|
|
|
|
lang_ko.xpm
|
|
|
|
lang_nl.xpm
|
|
|
|
lang_pl.xpm
|
|
|
|
lang_pt.xpm
|
|
|
|
lang_ru.xpm
|
|
|
|
lang_sl.xpm
|
|
|
|
language.xpm
|
2010-01-21 20:36:48 +00:00
|
|
|
layers_manager.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
leave_sheet.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
left.xpm
|
|
|
|
libedit_icon.xpm
|
|
|
|
libedit.xpm
|
|
|
|
libedprt.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
lib_next.xpm
|
|
|
|
lib_previous.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
library_browse.xpm
|
|
|
|
library_update.xpm
|
|
|
|
library.xpm
|
|
|
|
libsavem.xpm
|
|
|
|
libview.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
lines90.xpm
|
|
|
|
load_module_board.xpm
|
|
|
|
load_module_lib.xpm
|
2011-09-02 07:23:46 +00:00
|
|
|
local_ratsnest.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
locked.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
mirepcb.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
mirror_h.xpm
|
|
|
|
mirror_v.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
modedit.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
mode_module.xpm
|
|
|
|
mode_track.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
modratsnest.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
module_check.xpm
|
|
|
|
modul_edit.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
module_filtered_list.xpm
|
|
|
|
module_full_list.xpm
|
|
|
|
module_options.xpm
|
2011-09-02 07:23:46 +00:00
|
|
|
# module_ratsnest.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
module.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
morgan1.xpm
|
|
|
|
morgan2.xpm
|
|
|
|
move_arc.xpm
|
|
|
|
move_circle.xpm
|
|
|
|
move_field.xpm
|
|
|
|
move_glabel.xpm
|
|
|
|
move_line.xpm
|
|
|
|
move_module.xpm
|
|
|
|
move_pad.xpm
|
|
|
|
move_pinsheet.xpm
|
|
|
|
move_pin.xpm
|
|
|
|
move_polygon.xpm
|
|
|
|
move_rectangle.xpm
|
|
|
|
move_sheet.xpm
|
|
|
|
move_text.xpm
|
|
|
|
move_track_segment.xpm
|
|
|
|
move_track.xpm
|
|
|
|
move.xpm
|
|
|
|
mw_add_gap.xpm
|
|
|
|
mw_add_line.xpm
|
|
|
|
mw_add_shape.xpm
|
|
|
|
mw_add_stub_arc.xpm
|
|
|
|
mw_add_stub.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
mw_toolbar.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
net_highlight.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
netlist.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
net_locked.xpm
|
|
|
|
net_unlocked.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
new_component.xpm
|
|
|
|
new_cvpcb.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
new_footprint.xpm
|
|
|
|
new_library.xpm
|
|
|
|
new_module.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
new_pcb.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
new_project.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
new_sch.xpm
|
|
|
|
new_txt.xpm
|
|
|
|
new.xpm
|
|
|
|
noconn.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
normal.xpm
|
2010-04-20 11:23:59 +00:00
|
|
|
online_help.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
open_library.xpm
|
|
|
|
open_project.xpm
|
2011-03-19 20:39:18 +00:00
|
|
|
open_document.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
options_all_tracks_and_vias.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
options_all_tracks.xpm
|
|
|
|
options_all_vias.xpm
|
|
|
|
options_arc.xpm
|
|
|
|
options_circle.xpm
|
|
|
|
options_module.xpm
|
|
|
|
options_new_pad.xpm
|
|
|
|
options_pad.xpm
|
|
|
|
options_pinsheet.xpm
|
|
|
|
options_pin.xpm
|
|
|
|
options_rectangle.xpm
|
|
|
|
options_segment.xpm
|
|
|
|
options_text.xpm
|
|
|
|
options_tracks.xpm
|
|
|
|
options_track.xpm
|
|
|
|
options_vias.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
opt_show_polygon.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
orient.xpm
|
2010-10-04 12:58:07 +00:00
|
|
|
ortho.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
pad_sketch.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
pad.xpm
|
2010-01-20 12:43:05 +00:00
|
|
|
pads_mask_layers.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
palette.xpm
|
|
|
|
part_properties.xpm
|
|
|
|
paste.xpm
|
|
|
|
pcbnew.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
pcboffset.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
pin2pin.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
pin_name_to.xpm
|
|
|
|
pin_number_to.xpm
|
|
|
|
pin_size_to.xpm
|
2010-03-04 09:32:51 +00:00
|
|
|
pinorient_right.xpm
|
|
|
|
pinorient_left.xpm
|
|
|
|
pinorient_up.xpm
|
|
|
|
pinorient_down.xpm
|
|
|
|
pinshape_normal.xpm
|
|
|
|
pinshape_invert.xpm
|
|
|
|
pinshape_clock_normal.xpm
|
|
|
|
pinshape_clock_invert.xpm
|
|
|
|
pinshape_active_low_input.xpm
|
|
|
|
pinshape_clock_active_low.xpm
|
|
|
|
pinshape_active_low_output.xpm
|
2010-09-24 16:00:40 +00:00
|
|
|
pinshape_clock_fall.xpm
|
|
|
|
pinshape_nonlogic.xpm
|
2010-03-04 09:32:51 +00:00
|
|
|
pintype_input.xpm
|
|
|
|
pintype_output.xpm
|
|
|
|
pintype_bidi.xpm
|
|
|
|
pintype_3states.xpm
|
|
|
|
pintype_passive.xpm
|
|
|
|
pintype_notspecif.xpm
|
|
|
|
pintype_powerinput.xpm
|
|
|
|
pintype_poweroutput.xpm
|
|
|
|
pintype_opencoll.xpm
|
|
|
|
pintype_openemit.xpm
|
|
|
|
pintype_noconnect.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
pin_to.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
pin.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
plot_hpg.xpm
|
|
|
|
plot_ps.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
plot_xpm.xpm
|
|
|
|
polar.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
post_compo.xpm
|
|
|
|
post_drill.xpm
|
|
|
|
post_module.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
preference.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
print_button.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
ratsnest.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
read_setup.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
redo.xpm
|
|
|
|
red.xpm
|
|
|
|
reload2.xpm
|
|
|
|
reload.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
reset_text.xpm
|
|
|
|
resize_sheet.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
right.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
rotate_field.xpm
|
|
|
|
rotate_glabel.xpm
|
|
|
|
rotate_module_neg.xpm
|
|
|
|
rotate_module_pos.xpm
|
|
|
|
rotate_pin.xpm
|
|
|
|
rotate_ccw.xpm
|
|
|
|
rotate_cw.xpm
|
2011-08-28 20:02:27 +00:00
|
|
|
rotate_neg_x.xpm
|
|
|
|
rotate_pos_x.xpm
|
|
|
|
rotate_neg_y.xpm
|
|
|
|
rotate_pos_y.xpm
|
|
|
|
rotate_neg_z.xpm
|
|
|
|
rotate_pos_z.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
save_as.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
save_library.xpm
|
|
|
|
save_netlist.xpm
|
|
|
|
save_project.xpm
|
|
|
|
save_setup.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
save.xpm
|
|
|
|
schematic.xpm
|
|
|
|
select_grid.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
select_layer_pair.xpm
|
|
|
|
select_w_layer.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
shape_3d.xpm
|
|
|
|
sheetset.xpm
|
|
|
|
showdcode.xpm
|
2011-03-29 10:43:08 +00:00
|
|
|
show_footprint.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
showmodedge.xpm
|
|
|
|
showtrack.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
show_zone.xpm
|
|
|
|
show_zone_disable.xpm
|
|
|
|
show_zone_outline_only.xpm
|
|
|
|
swap_layer.xpm
|
|
|
|
text_sketch.xpm
|
2011-08-28 20:51:45 +00:00
|
|
|
three_d.xpm
|
2011-09-02 07:23:46 +00:00
|
|
|
tool_ratsnest.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
tools.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
track_locked.xpm
|
|
|
|
track_sketch.xpm
|
|
|
|
track_unlocked.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
transistor.xpm
|
|
|
|
treensel.xpm
|
|
|
|
treesel.xpm
|
|
|
|
undelete.xpm
|
|
|
|
undo.xpm
|
|
|
|
unit_inch.xpm
|
|
|
|
unit_mm.xpm
|
|
|
|
unknown.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
unlocked.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
unzip.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
update_module_board.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
up.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
via_sketch.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
viewlibs_icon.xpm
|
2011-08-29 03:04:59 +00:00
|
|
|
web_support.xpm
|
|
|
|
width_net.xpm
|
|
|
|
width_segment.xpm
|
|
|
|
width_track_via.xpm
|
|
|
|
width_track.xpm
|
|
|
|
width_vias.xpm
|
2011-04-05 17:49:14 +00:00
|
|
|
window_close.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
zip_tool.xpm
|
|
|
|
zip.xpm
|
2011-03-20 17:10:38 +00:00
|
|
|
zoom.xpm
|
|
|
|
zoom_area.xpm
|
|
|
|
zoom_fit_in_page.xpm
|
|
|
|
zoom_center_on_screen.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
zoom_in.xpm
|
|
|
|
zoom_out.xpm
|
|
|
|
zoom_redraw.xpm
|
2011-03-20 17:10:38 +00:00
|
|
|
zoom_selection.xpm
|
2008-09-09 16:51:47 +00:00
|
|
|
)
|
|
|
|
|
2008-05-17 19:24:22 +00:00
|
|
|
|
2008-06-06 12:39:00 +00:00
|
|
|
# Get the path of the *.xpm files into "PATH"
|
|
|
|
set(PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
#message("PATH = ${PATH}")
|
2008-05-17 19:24:22 +00:00
|
|
|
|
2008-07-12 12:07:32 +00:00
|
|
|
# The name of the directory to put the copied and renamed *.xpm files into.
|
|
|
|
# As files are copied they are renamed to *.cpp.
|
2009-06-26 17:24:32 +00:00
|
|
|
set(XPM_CPP_PATH "${CMAKE_BINARY_DIR}/bitmaps/auto_renamed_to_cpp"
|
2008-09-07 19:32:07 +00:00
|
|
|
CACHE PATH "path to store renamed .xpm files for compilation")
|
2008-07-12 12:07:32 +00:00
|
|
|
|
2008-06-06 12:39:00 +00:00
|
|
|
foreach(LOOP_VAR ${BITMAP_SRCS})
|
|
|
|
get_filename_component(BASENAME ${LOOP_VAR} NAME_WE)
|
2008-07-12 12:07:32 +00:00
|
|
|
set(CPP_BITMAP "${XPM_CPP_PATH}/${BASENAME}.cpp")
|
2008-05-17 19:24:22 +00:00
|
|
|
add_custom_command(
|
2008-06-06 12:39:00 +00:00
|
|
|
OUTPUT ${CPP_BITMAP}
|
2010-09-29 18:19:26 +00:00
|
|
|
COMMAND "${CMAKE_COMMAND}" -E copy "${PATH}/${BASENAME}.xpm" "${CPP_BITMAP}"
|
2008-06-06 12:39:00 +00:00
|
|
|
DEPENDS ${BASENAME}.xpm)
|
|
|
|
list(APPEND CPP_BITMAPS ${CPP_BITMAP})
|
|
|
|
set_source_files_properties(${CPP_BITMAP} PROPERTIES COMPILE_FLAGS -DXPMMAIN)
|
|
|
|
endforeach(LOOP_VAR)
|
2008-05-17 19:24:22 +00:00
|
|
|
|
2008-06-06 12:39:00 +00:00
|
|
|
add_library(bitmaps ${CPP_BITMAPS})
|