2007-11-08 07:17:37 +00:00
|
|
|
ADD_DEFINITIONS(-DPCBNEW)
|
|
|
|
|
2007-12-23 06:30:05 +00:00
|
|
|
FIND_PACKAGE(Boost)
|
|
|
|
|
2007-11-08 07:17:37 +00:00
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
2007-12-25 20:48:58 +00:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2007-11-08 07:17:37 +00:00
|
|
|
bitmaps
|
2007-12-17 21:55:15 +00:00
|
|
|
../3d-viewer
|
2007-12-25 20:48:58 +00:00
|
|
|
../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
|
2007-11-08 07:17:37 +00:00
|
|
|
SET(PCBNEW_SRCS
|
|
|
|
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
|
|
|
|
class_cotation.cpp
|
2007-12-09 14:13:34 +00:00
|
|
|
class_drc_item.cpp
|
2007-11-08 07:17:37 +00:00
|
|
|
class_edge_mod.cpp
|
|
|
|
class_equipot.cpp
|
|
|
|
class_marker.cpp
|
|
|
|
class_mire.cpp
|
|
|
|
class_module.cpp
|
|
|
|
class_pad.cpp
|
|
|
|
classpcb.cpp
|
|
|
|
class_pcb_text.cpp
|
|
|
|
class_text_mod.cpp
|
|
|
|
class_track.cpp
|
2007-12-09 14:13:34 +00:00
|
|
|
class_zone.cpp
|
2007-11-08 07:17:37 +00:00
|
|
|
clean.cpp
|
|
|
|
# cleaningoptions_dialog.cpp
|
|
|
|
collectors.cpp
|
|
|
|
connect.cpp
|
|
|
|
controle.cpp
|
|
|
|
copy_track.cpp
|
|
|
|
cotation.cpp
|
|
|
|
cross-probing.cpp
|
|
|
|
deltrack.cpp
|
|
|
|
# dialog_display_options.cpp
|
|
|
|
# dialog_drc.cpp
|
|
|
|
dialog_edit_mod_text.cpp
|
|
|
|
# dialog_edit_module.cpp
|
|
|
|
dialog_general_options.cpp
|
|
|
|
# dialog_graphic_items_options.cpp
|
|
|
|
# dialog_initpcb.cpp
|
|
|
|
# dialog_netlist.cpp
|
|
|
|
# dialog_pad_edit.cpp
|
|
|
|
dialog_setup_libs.cpp
|
|
|
|
# dialog_track_options.cpp
|
2007-12-25 20:48:58 +00:00
|
|
|
# dialog_zones_by_polygon.cpp
|
2007-11-08 07:17:37 +00:00
|
|
|
dist.cpp
|
2007-12-25 20:48:58 +00:00
|
|
|
# docedit.cpp <-- not used
|
2007-11-08 07:17:37 +00:00
|
|
|
dragsegm.cpp
|
|
|
|
drc.cpp
|
2007-12-25 20:48:58 +00:00
|
|
|
# dsn.cpp
|
2007-11-08 07:17:37 +00:00
|
|
|
edgemod.cpp
|
|
|
|
edit.cpp
|
|
|
|
editedge.cpp
|
|
|
|
editmod.cpp
|
|
|
|
editpads.cpp
|
|
|
|
editrack.cpp
|
|
|
|
editrack-part2.cpp
|
2007-12-25 20:48:58 +00:00
|
|
|
# editrout.cpp <-- not used
|
2007-11-08 07:17:37 +00:00
|
|
|
edit_track_width.cpp
|
|
|
|
edtxtmod.cpp
|
|
|
|
export_gencad.cpp
|
|
|
|
files.cpp
|
2007-12-25 20:48:58 +00:00
|
|
|
filling_zone_algorithm.cpp
|
2007-11-08 07:17:37 +00:00
|
|
|
find.cpp
|
|
|
|
gendrill.cpp
|
|
|
|
gen_modules_placefile.cpp
|
|
|
|
globaleditpad.cpp
|
|
|
|
graphpcb.cpp
|
|
|
|
hotkeys.cpp
|
|
|
|
initpcb.cpp
|
|
|
|
ioascii.cpp
|
|
|
|
lay2plot.cpp
|
|
|
|
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
|
2007-12-25 20:48:58 +00:00
|
|
|
# move_copy_track.cpp <-- not used
|
2007-11-08 07:17:37 +00:00
|
|
|
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
|
|
|
|
pcbtexte.cpp
|
|
|
|
plotgerb.cpp
|
|
|
|
plothpgl.cpp
|
|
|
|
plotps.cpp
|
|
|
|
plot_rtn.cpp
|
|
|
|
queue.cpp
|
|
|
|
ratsnest.cpp
|
|
|
|
# reglage.cpp
|
|
|
|
router.cpp
|
|
|
|
sel_layer.cpp
|
|
|
|
set_color.cpp
|
|
|
|
set_grid.cpp
|
|
|
|
solve.cpp
|
2007-12-25 20:48:58 +00:00
|
|
|
# specctra.cpp
|
2007-11-08 07:17:37 +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
|
2007-12-17 21:55:15 +00:00
|
|
|
# zones.cpp
|
2007-12-25 20:48:58 +00:00
|
|
|
zones_by_polygon.cpp)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
|
|
|
SET(PCBNEW_EXTRA_SRCS
|
2007-12-25 20:48:58 +00:00
|
|
|
# ../polygon/PolyLine.cpp
|
|
|
|
|
2007-11-08 07:17:37 +00:00
|
|
|
../share/drawframe.cpp
|
|
|
|
../share/drawpanel.cpp
|
|
|
|
../share/infospgm.cpp
|
|
|
|
../share/setpage.cpp
|
|
|
|
../share/wxprint.cpp
|
2007-12-25 20:48:58 +00:00
|
|
|
../share/zoom.cpp)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
SET(PCBNEW_RESOURCES pcbnew.rc)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
IF(APPLE)
|
|
|
|
SET(PCBNEW_RESOURCES pcbnew.r)
|
|
|
|
ENDIF(APPLE)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pcbnew WIN32 MACOSX_BUNDLE ${PCBNEW_SRCS} ${PCBNEW_EXTRA_SRCS} ${PCBNEW_RESOURCES})
|
|
|
|
|
2007-12-25 20:48:58 +00:00
|
|
|
# This one gets made only when testing.
|
|
|
|
SET_SOURCE_FILES_PROPERTIES(dsn.cpp PROPERTIES COMPILE_FLAGS -DSTANDALONE)
|
|
|
|
ADD_EXECUTABLE(dsntest EXCLUDE_FROM_ALL dsn.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(dsntest common ${wxWidgets_LIBRARIES})
|
2007-12-22 07:18:20 +00:00
|
|
|
|
2007-12-25 20:48:58 +00:00
|
|
|
SET_SOURCE_FILES_PROPERTIES(specctra.cpp PROPERTIES COMPILE_FLAGS -DSTANDALONE)
|
|
|
|
ADD_EXECUTABLE(specctra_test EXCLUDE_FROM_ALL specctra.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(specctra_test common ${wxWidgets_LIBRARIES})
|
2007-12-23 06:30:05 +00:00
|
|
|
|
2007-12-22 07:18:20 +00:00
|
|
|
|
2007-11-08 07:17:37 +00:00
|
|
|
TARGET_LINK_LIBRARIES(pcbnew common 3d-viewer ${wxWidgets_LIBRARIES})
|
|
|
|
|
2007-11-08 12:46:02 +00:00
|
|
|
INSTALL(TARGETS pcbnew RUNTIME DESTINATION ${KICAD_BIN})
|