2008-03-11 15:57:54 +00:00
|
|
|
add_definitions(-DPCBNEW)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-09-07 19:32:07 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${Boost_INCLUDE_DIR}
|
|
|
|
../3d-viewer
|
|
|
|
../polygon)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2007-12-25 20:48:58 +00:00
|
|
|
# Many of the commented out ones are nested in *.cpp files for dialogs
|
2008-03-11 15:57:54 +00:00
|
|
|
set(PCBNEW_SRCS
|
2008-01-18 17:10:54 +00:00
|
|
|
affiche.cpp
|
|
|
|
attribut.cpp
|
|
|
|
automove.cpp
|
|
|
|
autoplac.cpp
|
|
|
|
autorout.cpp
|
|
|
|
basepcbframe.cpp
|
|
|
|
block.cpp
|
|
|
|
block_module_editor.cpp
|
|
|
|
board.cpp
|
|
|
|
class_board.cpp
|
|
|
|
class_board_item.cpp
|
2008-11-18 18:13:55 +00:00
|
|
|
class_board_connected_item.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
class_cotation.cpp
|
|
|
|
class_drawsegment.cpp
|
|
|
|
class_drc_item.cpp
|
|
|
|
class_edge_mod.cpp
|
|
|
|
class_equipot.cpp
|
|
|
|
class_marker.cpp
|
|
|
|
class_mire.cpp
|
|
|
|
class_module.cpp
|
|
|
|
class_pad.cpp
|
2008-12-14 19:45:05 +00:00
|
|
|
class_pad_draw_functions.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
classpcb.cpp
|
|
|
|
class_pcb_text.cpp
|
|
|
|
class_text_mod.cpp
|
|
|
|
class_track.cpp
|
|
|
|
class_zone.cpp
|
2008-10-23 10:26:06 +00:00
|
|
|
class_zone_setting.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
clean.cpp
|
|
|
|
# cleaningoptions_dialog.cpp
|
|
|
|
collectors.cpp
|
|
|
|
connect.cpp
|
|
|
|
controle.cpp
|
2008-02-19 04:30:17 +00:00
|
|
|
# copy_track.cpp <-- not used
|
2008-01-18 17:10:54 +00:00
|
|
|
cotation.cpp
|
|
|
|
cross-probing.cpp
|
|
|
|
deltrack.cpp
|
2008-10-09 19:13:25 +00:00
|
|
|
dialog_copper_zones.cpp
|
2008-11-09 20:36:40 +00:00
|
|
|
dialog_copper_zones_base.cpp
|
2008-12-21 16:54:27 +00:00
|
|
|
dialog_display_options_base.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
# dialog_drc.cpp
|
2008-12-22 21:06:44 +00:00
|
|
|
dialog_edit_module_text.cpp
|
|
|
|
dialog_edit_module_text_base.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
# dialog_edit_module.cpp
|
2008-03-19 18:05:19 +00:00
|
|
|
dialog_freeroute_exchange.cpp
|
2008-02-19 04:30:17 +00:00
|
|
|
# dialog_gendrill.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
dialog_general_options.cpp
|
2008-12-21 16:54:27 +00:00
|
|
|
dialog_general_options_BoardEditor_base.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
# dialog_graphic_items_options.cpp
|
2008-12-23 13:14:01 +00:00
|
|
|
dialog_graphic_item_properties.cpp
|
|
|
|
dialog_graphic_item_properties_base.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
# dialog_initpcb.cpp
|
|
|
|
# dialog_netlist.cpp
|
2008-12-20 17:28:25 +00:00
|
|
|
dialog_pcb_text_properties.cpp
|
2008-09-26 19:51:36 +00:00
|
|
|
zones_non_copper_type_functions.cpp
|
2008-11-09 20:36:40 +00:00
|
|
|
dialog_non_copper_zones_properties_base.cpp
|
2008-11-22 11:10:40 +00:00
|
|
|
dialog_pad_properties.cpp
|
|
|
|
dialog_pad_properties_base.cpp
|
2009-01-17 17:32:20 +00:00
|
|
|
dialog_print_using_printer.cpp
|
|
|
|
dialog_print_using_printer_base.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
dialog_setup_libs.cpp
|
2008-07-12 07:25:35 +00:00
|
|
|
dialog_orient_footprints.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
# dialog_track_options.cpp
|
2009-01-11 19:12:18 +00:00
|
|
|
dialog_SVG_print.cpp
|
|
|
|
dialog_SVG_print_base.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
dist.cpp
|
|
|
|
dragsegm.cpp
|
|
|
|
drc.cpp
|
2008-01-21 22:16:45 +00:00
|
|
|
dsn.cpp
|
2008-02-19 04:30:17 +00:00
|
|
|
# dupltrac.cpp <-- not used
|
2008-01-18 17:10:54 +00:00
|
|
|
edgemod.cpp
|
|
|
|
edit.cpp
|
|
|
|
editedge.cpp
|
|
|
|
editmod.cpp
|
|
|
|
editrack.cpp
|
|
|
|
editrack-part2.cpp
|
2008-12-20 17:28:25 +00:00
|
|
|
edit_pcb_text.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
edit_track_width.cpp
|
|
|
|
edtxtmod.cpp
|
|
|
|
export_gencad.cpp
|
|
|
|
files.cpp
|
|
|
|
find.cpp
|
2008-01-18 17:09:39 +00:00
|
|
|
gen_drill_report_files.cpp
|
2008-02-08 00:16:59 +00:00
|
|
|
gen_holes_and_tools_lists_for_drill.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
gen_modules_placefile.cpp
|
|
|
|
gendrill.cpp
|
|
|
|
globaleditpad.cpp
|
2008-03-11 15:57:54 +00:00
|
|
|
gpcb_exchange.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
graphpcb.cpp
|
|
|
|
hotkeys.cpp
|
|
|
|
initpcb.cpp
|
|
|
|
ioascii.cpp
|
2008-12-17 06:51:39 +00:00
|
|
|
print_board_functions.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
librairi.cpp
|
|
|
|
loadcmp.cpp
|
|
|
|
locate.cpp
|
|
|
|
menubarmodedit.cpp
|
|
|
|
menubarpcb.cpp
|
|
|
|
mirepcb.cpp
|
|
|
|
modedit.cpp
|
|
|
|
modedit_onclick.cpp
|
|
|
|
modeditoptions.cpp
|
|
|
|
modedit_undo_redo.cpp
|
|
|
|
moduleframe.cpp
|
|
|
|
modules.cpp
|
|
|
|
# move_copy_track.cpp <-- not used
|
|
|
|
move-drag_pads.cpp
|
|
|
|
move_or_drag_track.cpp
|
|
|
|
muonde.cpp
|
|
|
|
muwave_command.cpp
|
|
|
|
netlist.cpp
|
|
|
|
onleftclick.cpp
|
|
|
|
onrightclick.cpp
|
|
|
|
pcbcfg.cpp
|
|
|
|
pcbframe.cpp
|
|
|
|
pcbnew.cpp
|
|
|
|
pcbplot.cpp
|
|
|
|
plotgerb.cpp
|
|
|
|
plothpgl.cpp
|
|
|
|
plotps.cpp
|
|
|
|
plot_rtn.cpp
|
|
|
|
queue.cpp
|
|
|
|
ratsnest.cpp
|
|
|
|
router.cpp
|
|
|
|
sel_layer.cpp
|
|
|
|
set_color.cpp
|
|
|
|
set_grid.cpp
|
|
|
|
solve.cpp
|
2008-01-21 22:16:45 +00:00
|
|
|
specctra.cpp
|
|
|
|
specctra_export.cpp
|
2008-02-06 22:32:15 +00:00
|
|
|
specctra_import.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
surbrill.cpp
|
|
|
|
swap_layers.cpp
|
|
|
|
tool_modedit.cpp
|
|
|
|
tool_onrightclick.cpp
|
|
|
|
tool_pcb.cpp
|
|
|
|
tracemod.cpp
|
|
|
|
tracepcb.cpp
|
|
|
|
track.cpp
|
|
|
|
tr_modif.cpp
|
|
|
|
trpiste.cpp
|
|
|
|
undelete.cpp
|
|
|
|
via_edit.cpp
|
|
|
|
work.cpp
|
|
|
|
xchgmod.cpp
|
|
|
|
zones_by_polygon.cpp
|
2008-10-02 13:24:31 +00:00
|
|
|
zones_convert_brd_items_to_polygons.cpp
|
|
|
|
zone_filling_algorithm.cpp
|
2008-10-11 19:27:43 +00:00
|
|
|
zones_polygons_insulated_copper_islands.cpp
|
2008-11-18 18:13:55 +00:00
|
|
|
zones_polygons_test_connections.cpp
|
2008-10-02 13:24:31 +00:00
|
|
|
zones_test_and_combine_areas.cpp
|
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
set(PCBNEW_EXTRA_SRCS
|
2009-01-17 17:32:20 +00:00
|
|
|
../share/setpage.cpp )
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
if(WIN32)
|
|
|
|
if(MINGW)
|
2008-04-18 08:04:54 +00:00
|
|
|
# PCBNEW_RESOURCES variable is set by the macro.
|
2008-04-13 19:07:32 +00:00
|
|
|
mingw_resource_compiler(pcbnew)
|
2008-03-11 15:57:54 +00:00
|
|
|
else(MINGW)
|
|
|
|
set(PCBNEW_RESOURCES pcbnew.rc)
|
|
|
|
endif(MINGW)
|
|
|
|
endif(WIN32)
|
2008-09-07 19:32:07 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
if(APPLE)
|
2008-06-15 16:31:32 +00:00
|
|
|
set(PCBNEW_RESOURCES pcbnew.icns)
|
|
|
|
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/pcbnew.icns"
|
2008-09-07 19:32:07 +00:00
|
|
|
PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
2008-06-15 16:31:32 +00:00
|
|
|
set(MACOSX_BUNDLE_ICON_FILE pcbnew.icns)
|
|
|
|
set(MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.pcbnew)
|
|
|
|
set(MACOSX_BUNDLE_NAME pcbnew)
|
2008-03-11 15:57:54 +00:00
|
|
|
endif(APPLE)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
add_executable(pcbnew WIN32 MACOSX_BUNDLE ${PCBNEW_SRCS} ${PCBNEW_EXTRA_SRCS} ${PCBNEW_RESOURCES})
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-09-07 19:32:07 +00:00
|
|
|
target_link_libraries(pcbnew 3d-viewer common polygon bitmaps kbool ${wxWidgets_LIBRARIES} ${OPENGL_LIBRARIES})
|
2008-03-31 01:32:15 +00:00
|
|
|
|
2008-09-07 19:32:07 +00:00
|
|
|
install(TARGETS pcbnew
|
2008-09-14 11:46:58 +00:00
|
|
|
DESTINATION ${KICAD_BIN}
|
2008-06-15 16:31:32 +00:00
|
|
|
COMPONENT binary)
|
2008-03-31 01:32:15 +00:00
|
|
|
|
|
|
|
|
2007-12-25 20:48:58 +00:00
|
|
|
# This one gets made only when testing.
|
2008-03-11 15:57:54 +00:00
|
|
|
add_executable(dsntest EXCLUDE_FROM_ALL dsn.cpp)
|
|
|
|
target_link_libraries(dsntest common ${wxWidgets_LIBRARIES})
|
2007-12-22 07:18:20 +00:00
|
|
|
|
2008-01-05 22:56:08 +00:00
|
|
|
# This one gets made only when testing.
|
2008-03-11 15:57:54 +00:00
|
|
|
add_executable(specctra_test EXCLUDE_FROM_ALL specctra.cpp dsn.cpp)
|
|
|
|
target_link_libraries(specctra_test common ${wxWidgets_LIBRARIES})
|